Pages: 12

  2008-02-14 11:23:19

dracoknight09
» FTalkAddict
FTalk Level: zero
302
0
1969-12-31

Sorry i was a lil late posting this. I intended to post this on valentines but i was a little late fixing it up. :wallbash: ok then.. Orig Code: [b]Javascript.internet.com[/b] Credits: [b]Me. ;]

Sorry i was a lil late posting this. I intended to post this on valentines but i was a little late fixing it up. :wallbash: ok then.. Orig Code: [b]Javascript.internet.com[/b] Credits: [b]Me. ;] :thumbsup: [/b] Inspired by: [b]Team DiaShak DuchShiKnight2008[/b] :wow: :thumbsup: This is a cheap copy paste code. [b] :arrow: Paste this outside the loader[/b] [quote]//HAPPY VALENTINEs EPTOK function calc() { first = document.loveform.name1.value.toUpperCase(); firstlength = document.loveform.name1.value.length; second = document.loveform.name2.value.toUpperCase(); secondlength = document.loveform.name2.value.length; var LoveCount=0; for (Count=0; Count < firstlength; Count++) { letter1=first.substring(Count,Count+1); if (letter1=='L') LoveCount+=2; if (letter1=='O') LoveCount+=2; if (letter1=='V') LoveCount+=2; if (letter1=='E') LoveCount+=2; if (letter1=='Y') LoveCount+=3; if (letter1=='O') LoveCount+=1; if (letter1=='U') LoveCount+=3; } for (Count=0; Count < secondlength; Count++) { letter2=second.substring(Count,Count+1); if (letter2=='L') LoveCount+=2; if (letter2=='O') LoveCount+=2; if (letter2=='V') LoveCount+=2; if (letter2=='E') LoveCount+=2; if (letter2=='Y') LoveCount+=3; if (letter2=='O') LoveCount+=1; if (letter2=='U') LoveCount+=3; } amount=0; if (LoveCount> 0) amount= 5-((firstlength+secondlength)/2) if (LoveCount> 2) amount= 10-((firstlength+secondlength)/2) if (LoveCount> 4) amount= 20-((firstlength+secondlength)/2) if (LoveCount> 6) amount= 30-((firstlength+secondlength)/2) if (LoveCount> 8) amount= 40-((firstlength+secondlength)/2) if (LoveCount>10) amount= 50-((firstlength+secondlength)/2) if (LoveCount>12) amount= 60-((firstlength+secondlength)/2) if (LoveCount>14) amount= 70-((firstlength+secondlength)/2) if (LoveCount>16) amount= 80-((firstlength+secondlength)/2) if (LoveCount>18) amount= 90-((firstlength+secondlength)/2) if (LoveCount>20) amount=100-((firstlength+secondlength)/2) if (LoveCount>22) amount=110-((firstlength+secondlength)/2) if (firstlength==0 || secondlength==0) amount= "Err"; if (amount < 0) amount= 0; if (amount >99) amount=99; document.loveform.output.value=amount+"%"; }[/quote] Then use this form to add to HTML replacements or addbox functions. :D :thumbsup: Paste inside the loader like this. [b] :arrow: Example in about me section[/b] [quote]var dk9 = "<br><b><font size=\"3\" color=\"#ffccff\">LOVE CALCULATOR</font></b><i><font color=\"#ffccff\"> Designed by: Dracoknight09</font></i>"+"<form name=loveform>"+"<img src=\"http://i252.photobucket.com/albums/hh32/Lia-fallied/heart.gif\" />"+ "<input value=\"Lover Boy\" name=\"name1\" type=\"text\" size=\"20\">"+"<img src=\"http://i252.photobucket.com/albums/hh32/Lia-fallied/heart.gif\" />"+ "<input value=\"Lover Girl\" name=\"name2\" type=\"text\" size=\"20\">"+ " <input value=\"CUPIDIZE!\" name=\"calculate\" class=\"wep\" type=\"button\" value=\"calculate\" onclick=\"calc()\"> "+"<input value=\"\" name=\"output\" type=\"text\" size=\"6\">"+"<img src=\"http://i252.photobucket.com/albums/hh32/Lia-fallied/heart.gif\" />"+ "<br>"+ "</form>"; document.getElementById('content_6').style.height='100%'; document.getElementById('content_6').style.overflowY='hidden'; document.getElementById('content_6').innerHTML = "<table width='100%'><tr><td align='center'>"+dk9+"</td></tr></table>";[/quote] lastly modify the calculated button (looks good in pink) [b] :arrow: Use CSS[/b] [quote]input.wep{ color:#fcf; font-family:'trebuchet ms',helvetica,sans-serif; font-size:10; background-color:#f69; border:1px solid; border-color:#f69;}[/quote] and there your done! easy! isnt it?! [b]HAPPY VALENTINES TO EVERYONE[/b] :kiss: dedicated to the eptok love teams and again to miss [b]Shy19[/b] :rose: :arrow: SEE IT FIRST: [url]http://profiles.friendster.com/56419498[/url]

Pages: 12

Board footer

© 2024 F Talk

Current time is 16:10

[ 12 queries - 0.034 second ]
Privacy Policy