Last edited by xXRaPXx (2007-12-24 22:32:54)
and when i try to refresh it again, it appears 4!!!
and.. i dont want to refresh it again~
hehe..
how can i remove the other??^^
here's my code:
http://h1.ripway.com/kryzzia/css.js
thx in advance!!!
Last edited by kryzzia_08 (2007-12-26 09:46:44)
and when i try to refresh it again, it appears 4!!!
and.. i dont want to refresh it again~
hehe..
how can i remove the other??^^
here's my code:
http://h1.ripway.com/kryzzia/css.js
thx in advance!!!
[/quote]
where did you paste your linker? was it in media..if you pasted linker in who i wana meet section before..and fs blocked it...it is still there even you deleted it..better rename your js into something then paste it again in media..that is why you are experiencing double sidebars..got the idea from levi..
[/quote]
source of your cbox is error........
replace the bold text with this..........
<">n
<">
~
it has been made easier
here are the codes that i have pasted in my JS file for the adbox generator..
can you pls check it?
//onload handler
function onProfileLoad() {
//insert generated boxes here
var header="M_y_C_h_a_t_b_o_x";
var code="<!-- BEGIN CBOX - www.cbox.ws -->"+
"<div align=\"center\" id=\"cboxdiv\">"+
"<iframe frameborder=\"0\" width=\"160\" height=\"305\" src=\"http://www[b]#[/b].cbox.ws/box/?boxid=[b]33548[/b]&boxtag=[b]j0f5g2[/b]&sec=main\" marginheight=\"2\" marginwidth=\"2\" scrolling=\"auto\" allowtransparency=\"yes\" name=\"cboxmain\" style=\"border: 0px solid;\" id=\"cboxmain\"></iframe><br/>"+
"<iframe frameborder=\"0\" width=\"160\" height=\"75\" src=\"http://http://www[b]#[/b].cbox.ws/box/?boxid=[b]33548[/b]&boxtag=[b]j0f5g2[/b]&sec=form\" marginheight=\"2\" marginwidth=\"2\" scrolling=\"no\" allowtransparency=\"yes\" name=\"cboxform\" style=\"border: 0px solid;border-top:0px\" id=\"cboxform\"></iframe>"+
"</div>"+
"<!-- END CBOX -->";
addBox(header,code,"custombox_4",/commonbox[\s]*?friends/i);
}
if (!attachOnLoadHandler(function(){onProfileLoad()})) window.onload = function(){onProfileLoad()};
function addBox(head,code,id,siblingafter) {
/*
head:
html string title
null - no header bar
code:
html string content
id:
unique string css pointer
siblingafter:
regexp classname
'left' - mainbar column end
'right' - sidebar column end
*/
try {
var li=document.createElement("li");
} catch(e) {
var li=document.createElement("<li>");
}
if(!head) head="";
else head="<h2>"+head+"</h2>";
li.innerHTML="<div id=\""+id+"\" class=\"commonbox "+id+"\">"+
head+
"<div id=\"content_"+id+"\">"+
code+
"</div>"+
"</div>";
if(siblingafter=="left") getElementsByClass(/commonbox[\s]*?controlpanel/i,null,"DIV")[0].parentNode.parentNode.appendChild(li);
else if(siblingafter=="right") getElementsByClass(/commonbox[\s]*?friends/i,null,"DIV")[0].parentNode.parentNode.appendChild(li);
else {
var si=getElementsByClass(siblingafter,null,"DIV")[0];
si.parentNode.parentNode.insertBefore(li,si.parentNode);
}
}
function getElementsByClass(searchClass,node,tag) {
var classElements = new Array();
if ( node == null )
node = document;
if ( tag == null )
tag = '*';
var els = node.getElementsByTagName(tag);
var elsLen = els.length;
var pattern = new RegExp(searchClass);
for (i = 0, j = 0; i < elsLen; i++) {
if ( pattern.test(els[i].className) ) {
classElements[j] = els[i];
j++;
}
}
return classElements;
}
function onProfileLoad() {
//insert generated boxes here
//insert tracker box at the end of sidebar column
addBox("commonbox",pageOwnerFName+"'s Visitors",TRACKER.div.innerHTML,"tracker","right");
}
i have noticed that i have two onload handler..
the other one is located under these codes and i think its for the WVM..
Last edited by breanne (2007-12-28 14:29:54)
anyway.. if you have a WVM... there will be a conflict on the compilation... refer to this site: [url]http://theftalk.com/t15088-Compiling-javascripts-file-%28update-topic-Dec.10%29.html[/url]
Last edited by ducheszv (2007-12-29 09:15:29)
can u give me a sample on the firsr part.. <on the js>
my js doesnt work
can u give me a sample on the firsr part.. <on the js>
my js doesnt work[/quote]
PERHAPS YOU DIDNT RENAME YOUR .JS SCRIPTS INTO .TXT...
E.G': [color=red]http://h1.ripway.com/username/yourfile.js[/color]
rename it to: [color=green]http://h1.ripway.com/username/yourfile.txt[/color]
Last edited by lordheinz (2007-12-30 03:54:23)