OMG it became more difficult since i refer on xavierkym's profile
After intense studying.. I come up with this code
and I cant figure out what to put on the last part of my code
[quote]if (!attachOnLoadHandler(function(){editContent()})) parent.onload = function(){editContent()};
//load script
function attachOnLoadHandler(func)
{
if(parent.attachEvent)
{
//win 5.0-6.0
parent.attachEvent('onload',func);
return true;
}
if(parent.addEventListener)
{ //moz,opera & safari
parent.addEventListener('load',func,false);
return true;
}
return false;
}
function editContent() {
var cbox1="<div align='center' id='cboxdiv'>"+
"<iframe frameborder='0' width='90%' height='300' src='http://www4.cbox.ws/box/?boxid=3295805&boxtag=2474&sec=main' marginheight='2' marginwidth='2' scrolling='auto' allowtransparency='yes' name='cboxmain' style='border:#000000 12px solid;' id='cboxmain'></iframe><br>"+
"<iframe frameborder='0' width='90%' height='105' src='http://www4.cbox.ws/box/?boxid=3295805&boxtag=2474&sec=form' marginheight='2' marginwidth='2' scrolling='no' allowtransparency='yes' name='cboxform' style='border:#000000 12px solid;border-top:0px' id='cboxform'></iframe>"+
"</div>";
var thesidebar="<div id='sidething'><center><b>CLICK THEM HERE:</b><br><a href=\"javascript:onClick=get_properties('admain')\">ANNOUNCEMENT</a></br>"+
"<a href=\"javascript:onClick=get_properties('css')\">CSS URL GENERATOR</a></br>"+
"<a href=\"javascript:onClick=get_properties('js')\">JS URL GENERATOR</a></br>"+
"<a href=\"javascript:onClick=get_properties('ftalk')\">TRICKS AND TUTORIALS</a></br>"+
"<a href=\"javascript:onClick=get_properties('chatroom')\">GEO & FLASH CHATROOM</a></br>"+
"<a href=\"javascript:onClick=get_properties('chit')\">TAMBAYAN CHATROOM</a></br>"+
"<a href=\"javascript:onClick=get_properties('chat')\">FRIENDSTER CHATROOM</a></center><br><br></div>";
addSideBar[b]("MY CBOX",cbox1,"ul_cbox_content");[/b]
}[/quote]
What's wrong in this code please kindly check
Last edited by diabolicious (2007-08-01 01:04:29)