rhlblue
01-26-2008, 05:29 AM
1) Script Title: Style Sheet Switcher 1.1
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex9/stylesheetswitcher.htm
3) Describe problem: Well, there is only one problem which is that its messing my XHTML :(
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Team Beyond Productions</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="style.css" media="screen" title="default" />
<link rel="alternate stylesheet" type="text/css" media="screen" title="blue-theme" href="blue.css" />
<link rel="alternate stylesheet" type="text/css" media="screen" title="green-theme" href="green.css" />
<link rel="alternate stylesheet" type="text/css" media="screen" title="orange-theme" href="orange.css" />
<link rel="alternate stylesheet" type="text/css" media="screen" title="pink-theme" href="pink.css" />
<script type="text/javascript" src="styleswitch.js">
/***********************************************
* Style Sheet Switcher v1.1- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/
</script>
</head>
<body>
<div id="container-page">
<div id="openholder">
<a id="openPanel" name="top" href="javascript:void(0);"><img src="images/open.png" alt="Open" /></a>
<a id="closePanel" href="javascript:void(0);" style="display:none;"><img src="images/close.png" alt="Close" /></a> </div>
<div id="top_panel" align="center" style="margin:0 auto;"><div id="myPanel" class="fluid" align="center">
<a href="javascript:chooseStyle('none', 60)" checked="checked" id="style_links"><img src="images/pick_black.gif" alt="Black" title="Black" /></a>
<a href="javascript:chooseStyle('blue-theme', 60)"><img src="images/pick_blue.gif" alt="Blue" title="Blue" /></a>
<a href="javascript:chooseStyle('green-theme', 60)"><img src="images/pick_green.gif" alt="Green" title="Green" /></a>
<a href="javascript:chooseStyle('orange-theme', 60)"><img src="images/pick_orange.gif" alt="Orange" title="Orange" /></a>
<a href="javascript:chooseStyle('black-theme', 60)"><img src="images/pick_pink.gif" alt="Pink" title="Pink" /></a>
</div>
<br />
</div>
<div id="wrapper" class="fluid">
<div id="header"><a href="index.html" id="logo" title=""></a>
<div id="slogan">
<h1>Test</h1>
</div></div>
<div id="main">All Rights Reserved</div><div id="sidebar">All Rights Reserved</div>
</div>
</div>
<div id="footer"><a name="bottom" href="#top">TOP</a><p>All Rights Reserved</p></div>
</body>
</html>
There is only 1 error in my code and which is this :
http://i25.tinypic.com/25ev6dc.jpg
Please can anyone help me ? , this is the first time I'm able to make a valid page lol....and i don't wanna blow it up :P
Part 2 : I would also like to know few more things about this script !
1) Script Title: Style Sheet Switcher 1.1
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex9/stylesheetswitcher.htm
3) Describe problem: I have like five different colors for the same image, its a pattern....so right now i'm using the option to change the color of the pattern....But now i also want to change the pattern this time....means like 5 different colors and 3 patterns, and all 3 patterns in 5 colors :
Example :
Select Color :
1) Blue
2) Green
3) Orange
4) Yellow
5) White
----------
Select Background Image :
1) Pattern 1
2) Pattern 2
3) Pattern 3
-----------
Now I can make all 3 background images (patterns) in 5 colors.....but how can i configure the links and style css to output the right thing ?
like for random, color blue pattern 3, or color yellow and patter 1 ?
Is that possible :D
Thanks a lot :)
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex9/stylesheetswitcher.htm
3) Describe problem: Well, there is only one problem which is that its messing my XHTML :(
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Team Beyond Productions</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="style.css" media="screen" title="default" />
<link rel="alternate stylesheet" type="text/css" media="screen" title="blue-theme" href="blue.css" />
<link rel="alternate stylesheet" type="text/css" media="screen" title="green-theme" href="green.css" />
<link rel="alternate stylesheet" type="text/css" media="screen" title="orange-theme" href="orange.css" />
<link rel="alternate stylesheet" type="text/css" media="screen" title="pink-theme" href="pink.css" />
<script type="text/javascript" src="styleswitch.js">
/***********************************************
* Style Sheet Switcher v1.1- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/
</script>
</head>
<body>
<div id="container-page">
<div id="openholder">
<a id="openPanel" name="top" href="javascript:void(0);"><img src="images/open.png" alt="Open" /></a>
<a id="closePanel" href="javascript:void(0);" style="display:none;"><img src="images/close.png" alt="Close" /></a> </div>
<div id="top_panel" align="center" style="margin:0 auto;"><div id="myPanel" class="fluid" align="center">
<a href="javascript:chooseStyle('none', 60)" checked="checked" id="style_links"><img src="images/pick_black.gif" alt="Black" title="Black" /></a>
<a href="javascript:chooseStyle('blue-theme', 60)"><img src="images/pick_blue.gif" alt="Blue" title="Blue" /></a>
<a href="javascript:chooseStyle('green-theme', 60)"><img src="images/pick_green.gif" alt="Green" title="Green" /></a>
<a href="javascript:chooseStyle('orange-theme', 60)"><img src="images/pick_orange.gif" alt="Orange" title="Orange" /></a>
<a href="javascript:chooseStyle('black-theme', 60)"><img src="images/pick_pink.gif" alt="Pink" title="Pink" /></a>
</div>
<br />
</div>
<div id="wrapper" class="fluid">
<div id="header"><a href="index.html" id="logo" title=""></a>
<div id="slogan">
<h1>Test</h1>
</div></div>
<div id="main">All Rights Reserved</div><div id="sidebar">All Rights Reserved</div>
</div>
</div>
<div id="footer"><a name="bottom" href="#top">TOP</a><p>All Rights Reserved</p></div>
</body>
</html>
There is only 1 error in my code and which is this :
http://i25.tinypic.com/25ev6dc.jpg
Please can anyone help me ? , this is the first time I'm able to make a valid page lol....and i don't wanna blow it up :P
Part 2 : I would also like to know few more things about this script !
1) Script Title: Style Sheet Switcher 1.1
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex9/stylesheetswitcher.htm
3) Describe problem: I have like five different colors for the same image, its a pattern....so right now i'm using the option to change the color of the pattern....But now i also want to change the pattern this time....means like 5 different colors and 3 patterns, and all 3 patterns in 5 colors :
Example :
Select Color :
1) Blue
2) Green
3) Orange
4) Yellow
5) White
----------
Select Background Image :
1) Pattern 1
2) Pattern 2
3) Pattern 3
-----------
Now I can make all 3 background images (patterns) in 5 colors.....but how can i configure the links and style css to output the right thing ?
like for random, color blue pattern 3, or color yellow and patter 1 ?
Is that possible :D
Thanks a lot :)