can you check this...
because it's not working...
it says that
[quote]Error
Invalid Cbox code. Please reinstall.[/quote]
here's the cbox codes
[quote]<!-- BEGIN CBOX -
www.cbox.ws - v001 -->
<div id="cboxdiv" style="text-align: center; line-height: 0">
<div><iframe frameborder="0" width="200" height="305" src="http://www5.cbox.ws/box/?boxid=[b]398736[/b]&boxtag=[b]2452[/b]&sec=main" marginheight="2" marginwidth="2" scrolling="auto" allowtransparency="yes" name="cboxmain" style="border:#180300 1px solid;" id="cboxmain"></iframe></div>
<div><iframe frameborder="0" width="200" height="75" src="http://www5.cbox.ws/box/?boxid=[b]398736[/b]&boxtag=[b]2452[/b]&sec=form" marginheight="2" marginwidth="2" scrolling="no" allowtransparency="yes" name="cboxform" style="border:#180300 1px solid;border-top:0px" id="cboxform"></iframe></div>
</div>
<!-- END CBOX -->[/quote]
[quote]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
if ( ! attachOnLoadHandler(function () { whoview();}))
window.onload = function () {
whoview();};
function whoview(){
var wvmcbox =
"<div align='center' id='cboxdiv'>"+
"<iframe frameborder='0' width='100%' height='250' src='http://www4.cbox.ws/box/?boxid=[b]398736[/b]&boxtag=[b]2452[/b]&sec=main' marginheight='2' marginwidth='2' scrolling='auto' allowtransparency='yes' name='cboxmain' id='cboxmain'>"+
"</iframe>"+
"</div>";
addBox("RIGHT","Visitors History",wvmcbox,"cboxz",null);
}
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]398736[/b]&boxtag=[b]2452[/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();
}
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=="RIGHT") {
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);
}
}
function show_hide(the_box) {
if (document.getElementById(the_box)) {
if (document.getElementById(the_box).style.display == 'none') {
document.getElementById(the_box).style.display = 'block';
}
else {
document.getElementById(the_box).style.display = 'none';
}
}
}[/quote]
Last edited by MargZ (2008-12-22 10:58:33)