Pages: 12
here's the code:
[b]REMINDER:THIS IS JUST A GOOGLE SEARCH FORM[/b]
[spoiler]var googlesearch="<br><form action='http://www.google.com/search?' name=f><input name=hl type=hidden value=en><input maxlength=2048 name=q size=20 title='Google Search' style='border: outset 2px #e3e3e3;' value='Type Your Search' onClick=\"value=''\"><br><input name=btnG type=submit value='Google Search'></form><br>";
addBox("<div align='right'>Google Search</div>","[color=blue]GOOGLE SEARCH[/color]",googlesearch,"commonbox","[color=green]2[/color]");[/spoiler]
you can edit the [b]title header(the one with all caps)[/b] and the [b]green text[/b] if you want
here's another code.This time it's google search and friendster search form (thanks to marfillaster hehehe)
[spoiler]var search=document.getElementById("search");
addBox("RIGHT","My Search Form",search.innerHTML.replace(/title="My Search Form"/i,"title=\"Arjhaye's Search Form\" target=\"_blank\""),"2");
search.parentNode.removeChild(search);[/spoiler]
the addBox function...if you already have this on your WVM no need to copy this code:
[spoiler]function addBox (type,head,htm,id,sibling) {
//by marfillaster
//type "LEFT" | "RIGHT"
//head header string
//htm innerHTML string
//id css_id string
//sibling css_id_insertbefore string | null
/* Available default Siblings
Default "sibling_ID" Boxes for Reference (10/19/07)
LEFT RIGHT
"0" = controlpanel "15" = meettrail
"1" = photos "2" = friends
"13" = blogs "14" = googleads
"12" = reviews "7" = fan
"6" = moreabout "8" = groups
"18" = publiccomments null = appends to last(without "")
"10" = scrapbook
*/
try {
var li=document.createElement("li");
} catch(e) {
var li=document.createElement("<li>");
}
if(type=="LEFT") {
var ul=document.getElementById("0").parentNode.parentNode;
htm="<div class='boxcontent'>"+htm+"</div>";
}
else {var ul=document.getElementById("2").parentNode.parentNode;
}
li.innerHTML="<div id='"+id+"' class='commonbox "+id+"'>"+
"<h2>"+head+"</h2>"+
"<div id='content_"+id+"'>"+
htm+
"</div>"+
"</div>";
if(sibling==null) ul.appendChild(li);
else {
sibling=document.getElementById(sibling).parentNode;
ul.insertBefore(li,sibling);
}
}[/spoiler]
[b]TIP:[/b] :idea:
if you already have the 1st and the addBox function code in your tracker.js all you need to copy is the main code and paste it on your onload handler.look for this part of the [color=red]tracker.js[/color] code:
<">that's where you will paste the main code....
preview:[url]http://profiles.friendster.com/11610748[/url]
credit:cip6192 for sharing me the code thanks man Last edited by frostmourne_05 (2008-11-04 20:34:26)
<">
Last edited by xavierkym (2007-09-03 08:02:04)
Did I miss something
[b]i want to put this at the top of my friends[/b]
[b]what will i add?[/b]
<">
[quote=hatahari]why is that my tracker is gone? nothing is showing up... sorry if I'm too innocent... I already have addbox function and the onloader handler... what is the exact code that I will be puting in my onload handler?
[/quote]
Just paste mafillaster code this is shown above into ur tracker.js after the onload handler. Make sure you removed the codes hiding the #search from ur css codes.
Last edited by bobcbar (2007-09-29 19:09:11)