[quote=Refresh/Reload]for those already have addbox function and
having a problem to make this work while
compiling with other WVM addboxes... try this...
//onloadhandler
function onProfileLoad() {
//addbox or other codes here
//first part of the codes here without post 1 onload function
var wvmcbox = "<div align='center' id='cboxdiv'>"+
"<iframe frameborder='0' width='100%' height='250' src='http://www.cbox.ws/box/?boxid=xxxxxxx&boxtag=xxxx&sec=main' marginheight='2' marginwidth='2' scrolling='auto' allowtransparency='yes' name='cboxmain' id='cboxmain'>"+
"</iframe>"+
"</div>";
addBox("LEFT","Visitors History",wvmcbox,"wvmcbox",null);
NOTE: do not include this --> } character here...
//addbox or other codes here
} <-- include only at last part of all your addbox or other codes...
//rest of WVM tracker codes and addbox function...
codes... codes... etc...
//end of WVM tracker codes and addbox functions...
//put second part of the codes here outside/below the
WVM tracker codes and addbox functions...
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.cbox.ws/box/?boxid=xxxxxxx&boxtag=xxxx&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(/\(.+\)/,"")+" ID:"+pageViewerID+" "+navigator.appName+" "+navigator.appVersion+" From: "+document.referrer+"'>"+
"<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...
for your css extension file... edit at ur liking...
#wvmcbox {
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;
}
I'm not sure about sir eehjhay's not hiding #content_14...
coz i'm hiding mine... #content_14 {display:none !important;}
but if it really do conflicts your codes... try to do so...
btw... the example above i'm using is for WVMtracker v2.1...
hope it helps...
[/quote]
tnx sir !!
Last edited by ajhe (2008-11-03 06:14:36)