Pages: 1

  2008-04-18 03:11:35

niknok_1999
» FTalkElite
FTalk Level: zero
4025
0
1969-12-31

[b]credits: [/b]:arrow: http://www.labpixies.com, marfillaster's addbox [b]preview: [/b] [img]http://i179.photobucket.com/albums/w310/niknok_1999/examp1.jpg[/img] [b]when clicked:[/b] [i

[b]credits: [/b]:arrow: http://www.labpixies.com, marfillaster's addbox [b]preview: [/b] [img]http://i179.photobucket.com/albums/w310/niknok_1999/examp1.jpg[/img] [b]when clicked:[/b] [img]http://i179.photobucket.com/albums/w310/niknok_1999/examp2.jpg[/img] [b]this widget requires addbox function (js).. coz i tried applyin it directly to my page but doesnt work[/b] [b]paste this code and generate it at master marfillaster addbox generator..[/b] [b]code:[/b] [quote]<table border="0" align="center" cellpadding="0" cellspacing="0" style="margin:0px; padding:0px; border:1px solid #000000;"><tr><td style="padding-left:10px; height:15px; line-height:15px; background-color:#000000;"><a href="http://www.labpixies.com" style="font-family: Arial,Verdana; font-size:12px; font-weight:bold; text-align:left; text-decoration:none; color:#ffffff;">Gadget by LabPixies.com</a></td></tr><tr><td style="padding:10px;"><iframe allowTransparency="true" align="middle" scrolling="no" width="300" height="312" frameborder="0" src="http://www.labpixies.com/campaigns/youtube/youtube.html"> </iframe></td></tr></table>[/quote] [b]or use the old addbox..[/b] (old coz this addbox is already 90 yrs old :p joke) [quote]function onProfileLoad() { //onload handler var ysearch="[b]<iframe allowTransparency='true' align='middle' scrolling='no' width='300' height='312' frameborder='0' src='http://www.labpixies.com/campaigns/youtube/youtube.html'> [/b]"; addBox("RIGHT"," youtube search",ysearch,"ysearch",null); } 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 LEFT 0 = controlpanel 1 = photos 13 = blogs 12 = reviews 6 = moreabout 18 = publiccomments 10 = scrapbook RIGHT 15 = meettrail 2 = friends 14 = googleads 7 = fan 8 = groups null - appends to last */ try { var li=document.createElement("li"); } catch(e) { var li=document.createElement("<li>"); } if(type=="LEFT") { 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 processAjaxRequest(type,url,cont,param,handler,handlerparam) { //by marfillaster //type 'POST' | 'GET' //cont 'true' | 'false' //param string | null //handler string | null //handlerparam string |null if(handlerparam) handlerparam=","+handlerparam; else handlerparam=""; var httprequest= window.XMLHttpRequest? new XMLHttpRequest():new ActiveXObject("Msxml2.XMLHTTP"); if(handler) eval("httprequest.onreadystatechange=function(){if (httprequest.readyState==4) {"+handler+"(httprequest.responseText"+handlerparam+");}}"); httprequest.open( type, url, cont); if(type=="POST") { httprequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); httprequest.setRequestHeader("Content-length", param.length); httprequest.setRequestHeader("Connection", "close"); } httprequest.send(param); }[/quote] waha ...

Last edited by niknok_1999 (2009-09-19 09:08:18)

Pages: 1

Board footer

© 2025 F Talk

Current time is 10:35

[ 12 queries - 0.044 second ]
Privacy Policy