You are viewing a post by andHa. View all 45 posts in [hr][hr] [align=center][b]FYI.[/b] Thread ini udah lama beud sbnr nya. Cuma skrg gw rapihin aja. Biar lebih enak di liat dan gampang di cari. Dan gw minta maap sblm nya buat member yg postingan nya mu.
ini kode js buad bikin marquee navigation.[/quote]
[b]Code[/b]
Masukin kode d bawah ini d dalam onloadhandler kmu (buad yg udah punya script addbox.)
[spoiler]var navi="<div align='left'><font color= #000000></font></div> <marquee style='width:85%px;border:2px solid #000000; direction='left' scrollamount='3' onmouseover='this.stop()' onmouseout='this.start()'>|| <a href='http://friendster.com'><font face='century gothic'><b>Home</b></font></a> || <a href='http://profiles.friendster.com/user.php'><font face='century gothic'><b>My Profile</b></font></a> || <a href='http://friendster.com/friends.php'><font face='century gothic'><b>Friends</b></font></a> || <a href='http://www.friendster.com/explore.php'><font face='century gothic'><b>Explore</b></font></a> || <a href='http://friendster.com/gallery.php'><font face='century gothic'><b>Search</b></font></a> || <a href='http://friendster.com/invite.php'><font face='century gothic'><b>Invite</b></font></a> || <a href='http://friendster.com/messages.php'><font face='century gothic'><b>Messages</b></font></a> || <a href='http://friendster.com/editaccount.php'><font face='century gothic'><b>Settings</b></font></a> || <a href='http://friendster.com/logout.php'><font face='century gothic'><b>Log Out</b></font></a> || </marquee><br></div>";
addBox("LEFT","Navigation",navi,"navi","0");[/spoiler]
Buad yg blum punya script addbox, pake kode yg d bawah ini.
[spoiler]function onProfileLoad() {
var navi="<div align='left'><font color= #000000></font></div> <marquee style='width:85%px;border:2px solid #000000; direction='left' scrollamount='3' onmouseover='this.stop()' onmouseout='this.start()'>|| <a href='http://friendster.com'><font face='century gothic'><b>Home</b></font></a> || <a href='http://profiles.friendster.com/user.php'><font face='century gothic'><b>My Profile</b></font></a> || <a href='http://friendster.com/friends.php'><font face='century gothic'><b>Friends</b></font></a> || <a href='http://www.friendster.com/explore.php'><font face='century gothic'><b>Explore</b></font></a> || <a href='http://friendster.com/gallery.php'><font face='century gothic'><b>Search</b></font></a> || <a href='http://friendster.com/invite.php'><font face='century gothic'><b>Invite</b></font></a> || <a href='http://friendster.com/messages.php'><font face='century gothic'><b>Messages</b></font></a> || <a href='http://friendster.com/editaccount.php'><font face='century gothic'><b>Settings</b></font></a> || <a href='http://friendster.com/logout.php'><font face='century gothic'><b>Log Out</b></font></a> || </marquee><br></div>";
addBox("LEFT","Navigation",navi,"navi","0");
}
if (!attachOnLoadHandler(function(){onProfileLoad()})) window.onload = function(){onProfileLoad()};
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
LEFT
0 = controlpanel
1 = photos
13 = blogs
12 = reviews
6 = moreabout
18 = publiccomments
10 = scrapbook
RIGHT
15 = meettrail
2 = friends
14 = googleads
7 = fan
8 = groups
null - appends to last
APPEND
INSERTBEFORE
*/
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]Note[/b]
[quote]mudah2an berguna de.
[/quote]
Last edited by andHa (2008-07-19 09:59:19)