Pages: 1..1234567891011

  2008-07-14 10:09:59

valjesnet
» FTalker
FTalk Level: zero
154
0
1969-12-31

Re: if your not using my anti poser cbox here is the code [code]if (!attachOnLoadHandler(function(){bryan2()})) parent.onload = function(){bryan2()}; //load script function attachOnLoadHandler(func) {

if (!attachOnLoadHandler(function(){bryan2()})) parent.onload = function(){bryan2()}; //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 bryan2() { var mssg="<div align='center' id='cboxdiv'>"+ "<form name='message_form' action='http://www.friendster.com/sendmessage.php' method='post' onsubmit='this.onsubmit = new Function('return false');'><input type='hidden' name='_submitted' value='1'><input type='hidden' name='msg_type' value=''><input type='hidden' name='uid' value='"+pageOwnerID+"'><table class='formtable'><tr><td class='field'><label for='subjectfield'></label></td><td class='value'><span class='field'>Subject:</span><br><input id='subjectfield' type='text' name='subject' size='25' maxlength='100' class='subjectfield'></td></tr><tr><td class='field'><label for='messagefield'></label></td><td valign='top' class='value'><span class='field'>Message:</span><br><textarea id='messagefield' name='message' rows='10' cols='21' wrap='hard' class='messagefield'></textarea><input readonly type='hidden' name='inputcount' size='5' maxlength='4' value='100'></td></tr><tr><td class='field'></td><td class='value'><input type='checkbox' name='savetosent' value='y'>Save a copy in your Sent folder<br><input type='submit' name='Submit' onMouseOver='window.status='Send';return true;' value='Send'></td></tr></table></form>"+ "</div>"; addSideBar("mssg",mssg,"ul_cbox_content"); } //add sidebar script function addSideBar(head,htm,div_id) { var browser=navigator.appName; var mic="Microsoft Internet Explorer"; var innerHtm=htm; var cont="<div id='"+div_id+"' class='commonbox "+div_id+"'>"+ "<div class='commonbox'>"+ "<h2>"+head+"</h2>"+ innerHtm+ "</div>"+ "</div>"; if (browser==mic){ var obj=parent.document.createElement("<li>"); var x=parent.document.getElementById("2"); x.parentNode.parentNode.appendChild(obj); obj.innerHTML=cont; } else { var obj=parent.document.createElement("li"); obj.innerHTML=cont; var x=parent.document.getElementById("2"); x.parentNode.parentNode.appendChild(obj); } } i want these codes in my side bar. should i just copy and paste it in my js file?

Last edited by valjesnet (2008-07-15 00:12:44)

Pages: 1..1234567891011

Board footer

© 2024 F Talk

Current time is 05:36

[ 12 queries - 0.012 second ]
Privacy Policy