HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
drop down list for a layout changer
Post new topic   Reply to topic    HTML Help Forum Index -> PHP
View previous topic :: View next topic  
Author Message
prodigy



Joined: 18 Apr 2007
Posts: 4

PostPosted: Thu Apr 19, 2007 5:24 pm     drop down list for a layout changer Reply with quote

cant i do this:

Quote:
<center>
<FORM NAME="Layout Changer">
<SELECT NAME="Layout Changer">
<OPTION VALUE="m1"><a href="http://spt.byethost7.com/index.html">Blaziken Red Style</a>
<OPTION VALUE="m2"><a href="http://spt.byethost7.com/index.html2">Mightyeana Gray Style</a>
<OPTION VALUE="m3"><a href="http://spt.byethost7.com/index.html3/">Rayquaza Green Style</a>
<OPTION VALUE="m4"><a href="http://spt.byethost7.com/index.html4/">Absol White Style</a>
<OPTION VALUE="m5"><a href="http://spt.byethost7.com/index.html5/">Mantine Blue Style</a>
</SELECT>
</FORM></center>


and save diffrent styles, with the same info as: index.html (diffrent style) , index2.html (diffrent style) , index3.html (diffrent style), etc and upload them to htdocs?

or should the code be:
Quote:
<center>
<FORM NAME="Layout Changer">
<SELECT NAME="Layout Changer">
<OPTION VALUE="m1"><a href="http://spt.byethost7.com/htdocs/index.html">Blaziken Red Style</a>
<OPTION VALUE="m2"><a href="http://spt.byethost7.com/htdocs/index.html2">Mightyeana Gray Style</a>
<OPTION VALUE="m3"><a href="http://spt.byethost7.com/htdocs/index.html3/">Rayquaza Green Style</a>
<OPTION VALUE="m4"><a href="http://spt.byethost7.com/htdocs/index.html4/">Absol White Style</a>
<OPTION VALUE="m5"><a href="http://spt.byethost7.com/htdocs/index.html5/">Mantine Blue Style</a>
</SELECT>
</FORM></center>

???

idk if u need like a submit button or somehting because when i press it, it doesnt do nothing. maybe cuz i didnt create index2-5?
check http://spt.byethost7.com for more info

i dont care if its harder then doing ccs sheets, id rather do this

p.s. i know i would have to edit all of them if i wanted to edit something

so can i do this?
Pattons3rd



Joined: 28 Dec 2006
Posts: 1212
Location: Colorado

PostPosted: Fri Apr 20, 2007 8:35 am     Reply with quote

I think one of the problems is that the <a> tag won't work in a <option> tag, or at least I don't think it will.
Try changing it to this.
Code:

<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
function JumpToIt(list)
{
    var selection = list.options[list.selectedIndex].value
    if (selection != "None")
        location.href = selection
}
//-->
</SCRIPT>
<center><FORM name="Layout Changer">
<SELECT WIDTH="20" onChange="JumpToIt(this)" name="Layout Changer">
<OPTION VALUE="None">Select a style from this list
<OPTION VALUE="http://spt.byethost7.com/index.html">Blaziken Red Style
<OPTION VALUE="http://spt.byethost7.com/index2.html">Mightyeana Gray Style
<OPTION VALUE="http://spt.byethost7.com/index3.html">Rayquaza Green Style
<OPTION VALUE="http://spt.byethost7.com/index4.html">Absol White Style
<OPTION VALUE="http://spt.byethost7.com/index5.html">Mantine Blue Style
</SELECT>
</FORM>
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> PHP All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial