
awww. it`s xoo confusing. lol=|

-Offline- |

sorry for the confusing tutorial... its just.... its hard to explain the old one, i fixed the code and i hope the tutorial will may not confuse the others 
-Offline- |

wow! nice job cip! thanx for sharing! ^_^
-Offline- |

it's a little bit confusing....lol
but im still using your old object switcher...hehehe
nice update....try it later...

-Offline- |

-Offline- |

cooool.
ennx!! tyvm

-Offline- |
i have a problem with this, the switch doesn't work. if i click any button, the default content stays. help!
+Online+ |

are you sure that you copied this one?
function switch1(div)
{
if (document.getElementById('one'))
{
var option=['one','two','three'];
for(var i=0; i<option.length; i++)
{ obj=document.getElementById(option[i]);
obj.style.display=(option[i]==div)? "block" : "none"; }
}
}
//its the function for switching object..
i changed some variables because i am still using the old object switcher, these are my codes:
inside my external css:
/* object switcher 2 */
#switch1 { width:320px; }
#isa, #dalawa, #tatlo {display:none;}
.objbuttons {
width:20px;
background-color:transparent;
border:1px solid #ffffff;
font-family:Arial;
font-weight:bold;
font-size:12px;
color:#ffffff;
}
.objbuttons:hover {
background-color: #4DBD33;
cursor:pointer;
}inside my external js:
//object switcher 2 with var inside addbox
function switch1(div)
{
if (document.getElementById('siro'))
{
var option=['siro','isa','dalawa','tatlo'];
for(var i=0; i<option.length; i++)
{ obj=document.getElementById(option[i]);
obj.style.display=(option[i]==div)? "block" : "none"; }
}
}
//within the add box function:
var objsw2="<div id='switch1'>"+
"<div id='siro'><div style='width: 320px; height: 243px; border-style: none; color: #CCFFFF; font-size: 14px; font-family: Arial; overflow: auto;'><br><center>Reign of Corporate Greed</center><br><br>Why anything that has to do with this company I abhor<br>1. Wowowee practice to cheat<br>2. Wowowee scam<br>3. Wowowee fiasco<br>4. Meralco to refund overcharging fees to customers(watch it floating in my profile)<br>5. Bogus generation charges shouldered by consumers(view it floating in my profile)<br><br></div></div>"+
"<div id='isa' align='center'><br><object width='280' height='243'><param name='movie' value='http://www.dailymotion.com/swf/x3z5na&v3=1&related=1'></param><param name='allowFullScreen' value='true'></param><param name='allowScriptAccess' value='always'></param><embed src='http://www.dailymotion.com/swf/x3z5na&v3=1&related=1' type='application/x-shockwave-flash' width='320' height='278' allowFullScreen='true' allowScriptAccess='always'></embed></object><br/><b><a href='http://www.dailymotion.com/video/x3z5na_wowoweekita-nyo_shortfilms'>Wowowee(Kita nyo!)</a></b><br/></div>"+
"<div id='dalawa' align='center'><br><object width='280' height='243'><param name='movie' value='http://www.dailymotion.com/swf/x2v4jc&v3=1&related=1'></param><param name='allowFullScreen' value='true'></param><param name='allowScriptAccess' value='always'></param><embed src='http://www.dailymotion.com/swf/x2v4jc&v3=1&related=1' type='application/x-shockwave-flash' width='320' height='278' allowFullScreen='true' allowScriptAccess='always'></embed></object><br/><b><a href='http://www.dailymotion.com/video/x2v4jc_wowowee-scam_news'>Wowowee scam</a></b><br/></div>"+
"<div id='tatlo' align='center'><br><object width='280' height='243'><param name='movie' value='http://www.dailymotion.com/swf/x2v4gd&v3=1&related=1'></param><param name='allowFullScreen' value='true'></param><param name='allowScriptAccess' value='always'></param><embed src='http://www.dailymotion.com/swf/x2v4gd&v3=1&related=1' type='application/x-shockwave-flash' width='320' height='278' allowFullScreen='true' allowScriptAccess='always'></embed></object><br/><b><a href='http://www.dailymotion.com/video/x2v4gd_wowowee-scam-1_news'>Wowowee scam 2</a></b><br/></div></div>"+
"<div align='right'><input class='objbuttons' type='button' value='0' onclick='switch1('siro')' /><input class='objbuttons' type='button' value='1' onclick='switch1('isa')' /><input class='objbuttons' type='button' value='2' onclick='switch1('dalawa')'/><input class='objbuttons' type='button' value='3' onclick='switch1('tatlo')' /></div>";
addBox("RIGHT","Lopez' sins to my country",objsw2,"objsw2","8");i might have encoded it by mistake, thanks for taking the time to respond.
+Online+ |

-Offline- |


mine not working..
var switch="<div align='center' id='switch1'>"+
"<div id='one'><embed src='http://www.youtube.com/v/gibh7R68TpI&hl&autoplay=1&rel=1' type='application/x-shockwave-flash' wmode='transparent' width='300' height='250'></embed></div>
"<div id='two'><embed src='http://www.youtube.com/v/q0HLMXCX9F0&hl&autoplay=1&rel=1' type='application/x-shockwave-flash' wmode='transparent' width='300' height='250'></embed></div>
"<div id='three'><embed src='http://www.youtube.com/v/gibh7R68TpI&hl&autoplay=1&rel=1' type='application/x-shockwave-flash' wmode='transparent' width='300' height='250'></embed></div></div>
"<div align='right'><input class='objbuttons' type='button' value='1' onclick='switch1('one')' /><input class='objbuttons' type='button' value='2' onclick='switch1('two')' /><input class='objbuttons' type='button' value='3' onclick='switch1('three')'/></div>
addBox("RIGHT","Now Playing",switch,"switch","2");-Offline- |

^did you copy this?
function switch1(div)
{
if (document.getElementById('one'))
{
var option=['one','two','three'];
for(var i=0; i<option.length; i++)
{ obj=document.getElementById(option[i]);
obj.style.display=(option[i]==div)? "block" : "none"; }
}
}
//
it's the function...
i tried putting the code into a new account, i was thinking that it may have conflicts with my other codes, but in the new account it still won't switch. the default content is always on display.
+Online+ |

Nice Code...![]()
![]()
Keep up the gud work


-Offline- |