View Full Version: Style Switcher Help

EV Forums > Web Help > Style Switcher Help



Title: Style Switcher Help


Smudgey - May 11, 2007 08:01 PM (GMT)
I have a style switcher on my site, PokeLair. It works fine in IE but doesn't work in FF, I'll post my Left and Right.php so you guys can have a look to see what the problem[s] are
CODE

<meta name="verify-v1" content="RXZQP76IvAWFNCQd3rXF6FF/BLtQdGFOrKqOwtbm01s=" />
<LINK REV="made" href="mailto:Pokelair@gmail.com">
<META NAME="keywords" CONTENT="Pokemon, Pikachu, Poke, Lair, PokeLair, Pokelair, Eevee, Diamond, Pearl, Ruby, Sapphire, Guide, Walkthrough, Cheats, Webmaster, mew, sprites, art, anime, tcg, forums, topsites, interactive, guestbook, updates, cutenews, ftp, ssi, php, html, ash, misty, brock">
<META NAME="description" CONTENT="PokeLair is a great Pokemon site with alot of content on the Hand Held Pokemon games aswell as alot of interactive content and information on Webmaster issues.">
<META NAME="author" CONTENT="Smudgey">
<META NAME="ROBOTS" CONTENT="ALL">


<script language="javascript">
<!--
if (document.images) {
button00=new Image
button01=new Image
button02=new Image

button00.src="http://i177.photobucket.com/albums/w227/pokelair/button.png"
button01.src="http://i177.photobucket.com/albums/w227/pokelair/LLbutton3.jpg"
button02.src="http://i177.photobucket.com/albums/w227/pokelair/icon-green.png"
}// -->
</script>

<link rel="stylesheet" href="/styles/test.css" type="text/css">
<link rel="alternate stylesheet" type="text/css" href="/styles/luxray.css" title="luxray"/>
<link rel="alternate stylesheet" type="text/css" href="/styles/test.css" title="style"/>
<link rel="alternate stylesheet" type="text/css" href="/styles/houndoom.css" title="houndoom"/>
<script type="text/javascript" src="http://pokelair.cogia.net/styleswitcher.js"></script>
</head>
<body leftmargin="0" rightmargin="0" topmargin="10" bottommargin="10"><link rel="alternate stylesheet" type="text/css" href="/test.css" title="style"><link rel="alternate stylesheet" type="text/css" href="/luxray.css" title="luxray">
<div id="centerlayout">
<table cellspacing="0" cellpadding="0" border="0">
<tr><td valign="top" align="center" id="banner" colspan="4"></td></tr>
<tr>
<td valign="top" id="leftmenu">
<center><b>Main</b></center><br>
<a href="/index.php">Index</a><br>
<a href="/affiliate.php">Affiliate</a><br>
<a href="/link.php">Link To Us</a><br>
<a href="/submit.php">Submit</a><br>
<a href="/history.php">History</a><br>
<a href="/hopes.php">Hopes</a><br>
<a href="/records.php">Records</a><br>
<a href="/forums/">Forums</a><br>
<a href="/news/">News Login</a><br>
<a href="/topsites/">Topsites</a>
<p>

<center><b>Pok&eacute;mon Games</b></center><br>
<a href="/games/rb/red.php">Red/Blue</a><br>
<a href="/games/yellow/yellow.php">Yellow</a><br>
<a href="/games/gs/gold.php">Gold/Silver</a><br>
<a href="/games/crystal/crystal.php">Crystal</a><br>
<a href="/games/rs/ruby.php">Ruby/Sapphire</a><br>
<a href="/games/emerald/emerald.php">Emerald</a><br>
<a href="/games/fr/firered.php">Fire Red/Leaf Green</a><br>
<a href="/games/dp/diamond.php">Diamond/Pearl</a><br>
<a href="/games/xd/xd.php">XD: GoD</a><br>
<a href="/games/colo/colo.php.php">Colosseum</a><br>
<a href="/games/guides/guides.php">Guides</a><br>
<a href="/games/fakes.php">Fake Games</a><br>
<a href="/games/ubers.php">Ubers</a>
<p>

<center><b>Pok&eacute;mon</b></center><br>
<a href="/pokemon/pokemon.php">Pok&eacute;mon?</a><br>
<a href="/pokemon/list.php">Pok&eacute;mon List</a><br>
<a href="/games/rs/rubysapphiresprites.php">R/S Sprites</a><br>
<a href="/games/rs/spritecomparison.php">Sprite Comparision</a>
<a href="/sprites.php">Sprites</a>
<p>
<center><b>Webmaster</b></center><br>
<a href="/webbies/affiliation.php">Affiliation Guide</a><br>
<a href="/webbies/direct.php">Direct Linking Guide</a><br>
<a href="/webbies/money.php">Make Money</a><br>
<a href="/webbies/html.php">HTML Guide</a><br>
<a href="/webbies/basics.php">Basics</a><br>
<a href="/webbies/hits.php">Hits</a><br>
<a href="/webbies/ftp.php">FTP</a><br>
<a href="/webbies/resources.php">Resources</a><br>
<a href="/webbies/cutenews.php">Cutenews</a><br>
<a href="/webbies/ssi.php">SSI</a><br>
<a href="/webbies/slang.php">Web Slang</a><br>
<a href="/webbies/shortcuts.php">Shortcuts</a>
<p>
<center><b>Free Stuff</b></center><br>
<a href="/webbies/free.php">Terms of use</a><br>
<a href="/webbies/freeimages.php">Free Images</a><br>
<a href="/webbies/freeavatars.php">Free Avatars</a><br>
<a href="/webbies/layouts.php">Free Layouts</a><br>
<a href="/webbies/blogs.php">Free Blogs</a><br>
<a href="/webbies/freebanners.php">Free Banners</a><br>
<a href="/webbies/pokeimages.php">Pokemon Images</a><br>
<p>
<center><b>Interactive</b></center><br>
<a href="/guestbook.php">Guestbook</a><br>
<a href="/polls.php">Polls</a><br>
<a href="/whatpokemon.php">What Pok&eacute;mon?</a>
<p>

<center><b>Art</b></center><br>
<a href="/fanart.php">Fan Art</a><br>
<a href="/myart.php">My Art</a><br>
<a href="/rules.php">Art Rules</a>

</p>



</td>
<td valign="top" id="content">
<div align="justify">
<table cellspadding="5" cellspacing="0" border="0">
<tr>

<td valign="top" id="content"><link rel="alternate stylesheet" type="text/css" href="/styles/test.css" title="style"><link rel="alternate stylesheet" type="text/css" href="/styles/luxray.css" title="luxray">
<table width="100%" bgcolor="FFFFFF"><tr><td bgcolor="FFFFFF"><center><a href="/index.php">Index</a> //
<a href="/affiliate.php">Affiliate</a> //
<a href="/link.php">Link To Us</a> // <a href="/forums/">Forums</a> // <a href="/topsites/">Topsites</a></td></tr></table></center><center><table border="0" cellpadding="0" cellspacing="0" valign="top"><tr>
<td valign="top" id="ticker" width="392px" height="17px"></td><div style="text-align: left; width: px"><div style="overflow: auto; z-index: 99; box-sizing: border-box; -moz-box-sizing: border-box; position: relative; top: 5px; left: 98px; width: 253px; height: 12px; margin-right: -228px; margin-bottom: -10px">
<font color="white"><marquee>Hello, welcome to Pok&eacute;Lair, We are new with lots of things to do! Currently growing with 25+ unique hits/day so far. New pages, a free blogs page with cool blogs on for you to use, an Affiliation guide and also a direct linking guide. 27/4/07 - Ok, added a cutenews guide in webmastering and also a WiFi guide in Pok&eacute;mon guides - More guide have been added along with a style switcher and I have moved the mini ticker to a bar in teh content! have fun ^^. We have moved host, we are now located at, http://pokelair.ulmb.com</marquee></font></div></td></tr></table></center><p>
That's left.php now for right.php

CODE
<br><p><script type="text/javascript"><!--
google_ad_client = "pub-7841463270833809";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel = "";
//-->
</script>
<script type="text/javascript"
 src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
</div></td></tr></table>
<td valign="top" id="rightmenu">


<center><b>Partner</b></center><br>
<center>
<a href="http://pokemonruleall.6te.net/"><img src="http://p5.piczo.com/img/i194465674_34304_5.jpg"></a>
<p><center><b>AFFILIATES</b></center><br>
<center>
<img src="http://i177.photobucket.com/albums/w227/pokelair/button.png" name="button"></a><br>
<a onmouseover="document.button.src=button01.src" onmouseout="document.button.src=button00.src" href="http://latiasland.orgfree.com/">Latias  Land</a><br>
<a onmouseover="document.button.src=button02.src" onmouseout="document.button.src=button00.src" href="http://nintendo-direct.com/index.php">Nintendo Direct</a>
<p>
</center>
<center><b>Topsites</b></center><br>
<a href="http://pokelair.ulmb.com/topsites/"><img src="http://pokelair.ulmb.com/topsites/button.php?u=PokeLair" alt="The PokeLair Community Topsites" border="0" /><br /></a>
<center><b>PotW</b></center><br>
<img src="/sprites/390.png" alt="PotW" /><br>
<img src="http://i145.photobucket.com/albums/r223/llsprites/type/fire.png"><br>
Chimchar<br>
1"07<br>
14.0 lbs
<p>
<center><b>Shout Box</b></center><br>
<!-- BEGIN CBOX - http://www.cbox.ws -->
<div align="center" id="cboxdiv">
<iframe frameborder="0" width="130" height="305" src="http://www4.cbox.ws/box/?boxid=3137832&amp;boxtag=8767&amp;sec=main" marginheight="2" marginwidth="2" scrolling="auto" allowtransparency="yes" name="cboxmain" style="border:#DBE2ED 1px solid;" id="cboxmain"></iframe><br/>
<iframe frameborder="0" width="130" height="75" src="http://www4.cbox.ws/box/?boxid=3137832&amp;boxtag=8767&amp;sec=form" marginheight="2" marginwidth="2" scrolling="no" allowtransparency="yes" name="cboxform" style="border:#DBE2ED 1px solid;border-top:0px" id="cboxform"></iframe>
</div>
<!-- END CBOX -->
<center><b>Stats</b></center><br>
<!-- Start of StatCounter Code -->
<script type="text/javascript" language="javascript">
var sc_project=2446430;
var sc_invisible=0;
var sc_partition=23;
var sc_security="0a6f6d08";
</script>

<script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/counter.js"></script><noscript><a href="http://www.statcounter.com/" target="_blank"><img  src="http://c24.statcounter.com/counter.php?sc_project=2446430&amp;java=0&amp;security=0a6f6d08&amp;invisible=0" alt="website stats" border="0"></a> </noscript>
<!-- End of StatCounter Code --><br>
<div id="eXTReMe"><a href="http://extremetracking.com/open?login=pkmnlair">
<img src="http://t1.extreme-dm.com/i.gif" style="border: 0;"
height="38" width="41" id="EXim" alt="eXTReMe Tracker" /></a>
<script type="text/javascript"><!--
var EXlogin='pkmnlair' // Login
var EXvsrv='s9' // VServer
EXs=screen;EXw=EXs.width;navigator.appName!="Netscape"?
EXb=EXs.colorDepth:EXb=EXs.pixelDepth;
navigator.javaEnabled()==1?EXjv="y":EXjv="n";
EXd=document;EXw?"":EXw="na";EXb?"":EXb="na";
EXd.write("<img src=http://e0.extreme-dm.com",
"/"+EXvsrv+".g?login="+EXlogin+"&amp;",
"jv="+EXjv+"&amp;j=y&amp;srw="+EXw+"&amp;srb="+EXb+"&amp;",
"l="+escape(EXd.referrer)+" height=1 width=1>");//-->
</script><noscript><div id="neXTReMe"><img height="1" width="1" alt=""
src="http://e0.extreme-dm.com/s9.g?login=pkmnlair&amp;j=n&amp;jv=n" />
</div></noscript></div><br />
<!-- Start FastOnlineUsers.com -->
<a href="http://www.fastonlineusers.com"><script type="text/javascript" src="http://fastonlineusers.com/on4.php?d=pokelair.ulmb.com"></script> online</a>
<!-- End FastOnlineUsers.com -->
<p>
<center><b>Search</b></center><br>
<form action="http://search.freefind.com/find.html" method="get" accept-charset="utf-8" target="_self">
   <font size="1" face="arial,helvetica"><input type="HIDDEN" name="id" value="21346927"> <input type="HIDDEN" name="pageid" value="r"> <input type="HIDDEN" name="mode" value="ALL"> <input type=
   "radio" name="t" value="s" checked> Site search <input type="radio" name="t" value="w">Web search<br />
   <input type="HIDDEN" name="_charset_" value=""> <input type="HIDDEN" name="bcd" value="&divide;"> <input type="TEXT" name="query" size="10"> <small><input type="SUBMIT" value=
   " Find "><br></small>powered by <a href="http://www.freefind.com">FreeFind</a></font>
 </form>
<p>
<center><b>Styleswitcher</b></center><br>
<a href="#" onclick="setActiveStyleSheet('style'); return false;">Pok&eacute;Lair Blue</a><br>
<a href="#" onclick="setActiveStyleSheet('luxray'); return false;">Luxray Deluxe</a><br>
<a href="#" onclick="setActiveStyleSheet('houndoom'); return false;">Devil Dog</a><br>
<br /><center><b>Poll</b></center><br>
<form method=post action="http://poll.pollcode.com/Mod"><table border=0 width=130 bgcolor="EEEEEE" cellspacing=0 cellpadding=2><tr><td colspan=2><font face="Verdana" size=-1 color="Black"><b>Do you like the layout?</b></font></td></tr><tr><td width=5><input type=radio name=answer value="1"></td><td><font face="Verdana" size=-1 color="Black">Yes it's great!</font></td></tr><tr><td width=5><input type=radio name=answer value="2"></td><td><font face="Verdana" size=-1 color="Black">Yes</font></td></tr><tr><td width=5><input type=radio name=answer value="3"></td><td><font face="Verdana" size=-1 color="Black">It's alright</font></td></tr><tr><td width=5><input type=radio name=answer value="4"></td><td><font face="Verdana" size=-1 color="Black">No</font></td></tr><tr><td width=5><input type=radio name=answer value="5"></td><td><font face="Verdana" size=-1 color="Black">Yuck</font></td></tr><tr><td colspan=2><center><input type=submit value="Vote">&nbsp;&nbsp;<input type=submit name=view value="View"></center></td></tr><tr><td bgcolor="white" colspan=2 align=right><font face="Verdana" size=-2 color="black">pollcode.com <a href=http://pollcode.com/><font color="navy">free polls</font></a></font></td></tr></table></form>
</td></tr>
<tr><td valign="top" id="disclaimer" colspan="3">
</td></tr>
</table>
</body>
</html>



Shadow - May 11, 2007 08:59 PM (GMT)
Hmm... looking at my code, I can't find any differences except how the links are displayed, which shouldn't affect it.

Can we have a link to your site? It might make it a bit easier to tell what the problem is.


Smudgey - May 11, 2007 09:55 PM (GMT)
Ofcourse, I have a problem with mah brain today, had tests 4 lessons out of 6 a day for the past week. http://pokelair.ulmb.com

Shadow - May 11, 2007 11:18 PM (GMT)
Hmm. Why don't you try taking the /'s out of the links in the head section? So instead of

<link rel="alternate stylesheet" type="text/css" href="/styles/luxray.css" title="luxray"/>

it would be

<link rel="alternate stylesheet" type="text/css" href="/styles/luxray.css" title="luxray">

I'm not sure if that will help, but it can't hurt anything and I can't think of anything else XD;

Smudgey - May 12, 2007 10:29 AM (GMT)
Nah didn't work, Thanks anyway, maybe if I look through Kronakitty's source and see if there's a difference.

EDIT: Nah nothing different there, hmmm, weird.....




Hosted for free by InvisionFree