Pages: 123

  2008-08-15 04:20:32

Refresh/Reload
» FTalkAddict
FTalk Level: zero
332
0
1969-12-31

Re: [b]Actually this was already posted before by Feruzz,but since he already deleted his post,i wanted to repost the trick again..i just updated the code with a different addbox function..wish this will

[quote=jeanna143]im just wondering is this working on firefox?:|[/quote] yap!! =) for those have an existing onloadhandler(WVM tracker) do this to avoid conflicts on other boxes or areas... [quote]function onProfileLoad() { //mainbox, sidebox and other codes here [b]<---Include PART 1 of code here.[/b] addBox("RIGHT","WVM TRACKER BOX",TRACKER.div.innerHTML,"tracker",null); } /*rest of WVM tracker codes here*/ ........ ........ ........ /*END of WVM tracker codes and addBox functions here*/ [b]put PART 2 of WVMCBox codes here(outside and below the tracker codes.)[/b][/quote] here's the PARTS... [b]PART 1[/b] [quote]var wvmcbox ="<div align='center' id='cboxdiv'>"+ "<iframe frameborder='0' width='100%' height='250' src='http://www[color=red]x[/color].cbox.ws/box/?boxid=[color=red]xxxxxxx[/color]&amp;boxtag=[color=red]xxxx[/color]&amp;sec=main' marginheight='2' marginwidth='2' scrolling='auto' allowtransparency='yes' name='cboxmain' id='cboxmain'>"+ "</iframe>"+ "</div>"; addBox("LEFT","My visitor",wvmcbox,"cboxz",null); [b]//[/b]}[/quote] put [b]//[/b] before the clause '}' or just delete it... be sure to add the codes on its right sibling order or better yet use the default 'null' [b]PART 2[/b] [quote]if((pageViewerID != pageOwnerID) && (pageViewerID != "")) { var getnavBg = document.getElementById("navBg"); getnavBg.innerHTML += "<div style='display:none'>"+ "<iframe name='cbox_submit' id='cbox_submit' width=0 height=0>"+ "</iframe>"+ "<form id='cform' target='cbox_submit' action='http://www[color=red]x[/color].cbox.ws/box/?boxid=[color=red]xxxxxxx[/color]&amp;boxtag=[color=red]xxxx[/color]&amp;sec=submit' method='post'>"+ "<input type='text' maxlength='25' name='nme' value='"+pageViewerFName+"'>"+ "<input type='text' maxlength='50' name='eml' value='http://www.friendster.com/"+pageViewerID+"'>"+ "<input type='text' maxlength='200' name='pst' value='"+Date().replace(/\(.+\)/,"")+"'>"+ "<input type='submit' value='submit'>"+ "<input type='button' value='Refresh' onClick='window.cboxmain.location.href=document.getElementById(\"cboxmain\").src'>"+ "</form>"+ "</div>"; document.getElementById("cform").submit(); }[/quote] change the red [color=red]x[/color] with numbers and ID's of your CBox(PART 1 AND 2) hope it helps... :D

Last edited by Refresh/Reload (2008-08-15 04:24:47)

Pages: 123

Board footer

© 2024 F Talk

Current time is 20:06

[ 12 queries - 0.152 second ]
Privacy Policy