for those already have addbox function and
having a problem to make this work while
compiling with other WVM addboxes... try this...
[quote][b]//put on top of onloadhandler[/b]
var times=history.length
var now = new Date();
var millinow=now.getTime()/1000;
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds();
now.setHours(now.getHours()+1);
var min=60*now.getUTCHours()+now.getUTCMinutes() + now.getUTCSeconds()/60;
var internetTime=(min/1.44);
internetTime="Internet Time: @"+Math.floor(internetTime);
var later = new Date()
var millilater=later.getTime()/1000
var loadTime=(Math.floor((millilater-millinow)*100))/100
//onloadhandler
[b]function onProfileLoad() {[/b]
//addbox or other codes here
[b]//first part of the codes here without post 1 onload function[/b]
var wvmcbox =
"<div align='center' id='cboxdiv'>"+
"<iframe frameborder='0' width='100%' height='250' src='http://www4.cbox.ws/box/?boxid=[b]???????[/b]&boxtag=[b]????[/b]&sec=main' marginheight='2' marginwidth='2' scrolling='auto' allowtransparency='yes' name='cboxmain' id='cboxmain'>"+
"</iframe>"+
"</div>";
addBox("RIGHT","Visitors History",[b]wvmcbox[/b],"cboxz",null);
[b]}[/b] <--- [b]NOTE: delete that.. [/b]do not include that character here...
//addbox or other codes here
[b]}[/b] <-- only put this at the last part of all your addbox or other codes...
[b]//rest of WVM tracker codes and addbox function...[/b]
codes... codes... etc...
[b]//end of WVM tracker codes and addbox functions...[/b]
[b]//put second part of the codes here outside/below the
WVM tracker codes and addbox functions...[/b]
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://www4.cbox.ws/box/?boxid=[b]???????[/b]&boxtag=[b]????[/b]&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='History Information [br]Date: "+Date().replace(/\(.+\)/,"")+" [br]Referral ID: "+pageViewerID+" [br]Browser: "+navigator.appName+" [br]Version: "+navigator.appVersion+" [br]Came From: "+document.referrer+" [br]History: "+times+" time(s) [br]Local Time: "+hours+":"+minutes+":"+seconds+" [br]Screen Res: "+ screen.width +"x"+ screen.height +" pixel'>"+
"<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();
};
//other codes here...[/quote]
just properly compile your addboxes and other codes inside the
onloadhandler... use trial and error...
for your css extension file... edit at ur liking...
[quote][b]#wvmcbox[/b] {
background-color: transparent;
background-image:url(PUT BACKGROUND URL HERE);
background-attachment: scrollable;
background-repeat: repeat;
background-position: center;
border: 1px solid #555555;
width:100% ! Important;
}[/quote]
btw... the example above i'm using is for WVMtracker v2.1...
hope it helps...
Last edited by Refresh/Reload (2008-12-15 22:44:31)