<">I must have something else wrong if it works for others but not me, but I am just not seeing it.
Thanks anway!
Last edited by bobcbar (2007-08-11 00:00:49)
<">Think I understand now the I need to change all the double quotes to single quote within the code.
Thanks again! Bob
Last edited by bobcbar (2007-08-12 00:25:52)
ThanK U
Could you please check on my code? I don't know where did I go wrong
The code works with my projectplaylist mp3 code
but not with my flashfetish mp3 code
My chatbox and my slide box won't appear too
whenever I try to use this code with my flashfetish mp3 code
What's wrong
Thanks!
[quote]var mp3="<center><embed src='http://www.mp3asset.com/swf/mp3/fetish-mp3player.swf'
quality='high' wmode='transparent' flashvars='myid=3768961&path=2007/08/10&mycolor=0x0&mycolor2=0xffcc33&mycolor3=0x0&autoplay=true&rand=0&f
' width='290' height='320'
name='myflashfetish' align='middle'
type='application/x-shockwave-flash'
pluginspage='http://www.macromedia.com/go/getflashplayer' /></center>";
addMainSideBox("= M� M��!� EVE� =",mp3,"mp3","groups_2_5");
}
function addMainSideBox(header,cont,id,target) {
var tb = document.getElementById(target).parentNode;
var divid="<div id='"+id+"' class='commonbox "+id+"'>"+
"<h2>"+header+"</h2>"+
"<div id='content_"+id+"'>"+
"<div class='boxcontent'>"+
cont+
"</div>"+
"</div>"+
"</div>";
var obj = document.createElement("li");
obj.innerHTML=divid;
tb.parentNode.insertBefore(obj,tb);
}[/quote]
and take a look at this.. some new words to encounter..
[quote]//by marfillaster
function addBox ([b]type[/b],head,htm,id,[b]sibling[/b]) {
try {
var li=document.createElement("li");
} catch(e) {
var li=document.createElement("<li>");
}
if(type=="[b]LEFT[/b]") {
var ul=document.getElementById("controlpanel_1_1").parentNode.parentNode;
htm="<div class='boxcontent'>"+htm+"</div>";
}
else var ul=document.getElementById("friends_2_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);
}
}[/quote]
explains to us that...
[quote]//type "LEFT" | "RIGHT"
//head header string
//htm innerHTML string
//id css_id string
//sibling css_id_insertbefore string | null
/* Available default Siblings
LEFT
controlpanel_1_1
photos_1_2
blogs_1_3
reviews_1_4
moreabout_1_5
publiccomments_1_7
scrapbook_1_8
RIGHT
meettrail_2_1
friends_2_2
ads_2_3
fanof_2_4
groups_2_5
null - appends to last
*/[/quote]
isnt it nice??
Last edited by xavierkym (2007-08-26 15:39:28)
its not working on my profile
this my code:
if ( ! attachOnLoadHandler(function () { addContent();}))
window.onload = function () { addContent();};
function addContent() {
var mp3="<embed src='http://www.loudfusion.com/mp3_players/managed/plr_1/player.swf' quality='high' wmode='transparent' flashvars='USERID=265103' width='295' height='255' name='LoudFusion.com' type='application/x-shockwave-flash'></embed>";
addBox("My Playlist",mp3,"mp3","controlpanel_1_1");
var cbox="<p style="visibility:visible;"><object type="application/x-shockwave-flash" data="http://widget-7a.slide.com/widgets/slideticker.swf" height="100" width="700" style="width:700px;height:100px"><param name="movie" value="http://widget-7a.slide.com/widgets/slideticker.swf" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param name="salign" value="l" /><param name="wmode" value="transparent"/> <param name="flashvars" value="cy=ms&il=1&channel=576460752310015610&site=widget-7a.slide.com"/></object><p><a href="http://www.slide.com/pivot?cy=ms&ad=0&id=576460752310015610&map=1" target="_blank"><img src="http://widget-7a.slide.com/p1/576460752310015610/ms_t000_v000_a000_f00/images/xslide1.gif" border="0" ismap="ismap" /></a> <a href="http://www.slide.com/pivot?cy=ms&ad=0&id=576460752310015610&map=2" target="_blank"><img src="http://widget-7a.slide.com/p2/576460752310015610/ms_t000_v000_a000_f00/images/xslide2.gif" border="0" ismap="ismap" /></a></p></p>";
addBox("Photo Slide",Slide,"Slide","friends_2_2");
}
function addBox(header,cont,id,target) {
var tb = document.getElementById(target).parentNode;
var divid="<div id='"+id+"' class='commonbox "+id+"'>"+
"<h2>"+header+"</h2>"+
"<div id='content_"+id+"'>"+
cont+
"</div>"+
"</div>";
var obj = document.createElement("li");
obj.innerHTML=divid;
tb.parentNode.insertBefore(obj,tb);
}
but not working help me please.................