Go Back   Tech Support Forum > Design Forum > Web Design & Development

Join Tech Support Forum Today

Reply
 
Thread Tools Search this Thread
 
Old 07-31-2010, 01:36 PM   #1
Registered Member
 
JimBoCol's Avatar
 
Join Date: Apr 2010
Location: Clarksburg, WV
Posts: 137
OS: OS-9.22, OS-X Panther, OS-X Tiger, XP Pro SP3, Win 2K Pro SP4, Linux Umbutu 9.10, Linux Fedora 12


Easy Web page question

Okay guys. I have a local webpage that I am using for my home page in explorer. I keep all of my links in it, sort of like a huge menuing system. Since Internet Explorer no longer supports frames, or navigates from page to page on the local disk, I had to redisign the entire thing. I figured while I'm at it, I might see if I can get rid of the buttons, and have it go to the address after updating the field.

This is what is in the head of the page:
Code:
<HTML>
<HEAD>
<TITLE>Home</TITLE>
<SCRIPT language="JavaScript">

function navigate(form) 
{
 var go = (form.linkList.options[form.linkList.selectedIndex].value);
 document.location.href=go;
}
</SCRIPT>

</HEAD> 
<body background="images/56olds7.JPG" font size=6 COLOR=#000000>
And this is one of the option groups:
Code:
        <b><font typeface="arial" size="5" color="#FFFFFF"><span style="background-color: #000000">Search/Forums</span></font></b>
		<FORM METHOD=post>
		<p>
		<SELECT NAME="linkList">
		<OPTION value="http://www.google.com"><selected>Google
		<OPTION value="http://www.yahoo.com">Yahoo
		</OPTION>
		</SELECT><INPUT TYPE = "button" NAME="GO" VALUE="Visit" onClick="navigate(this.form)">
		</FORM>
Is there any way that I can make it go to the site I choose by just choosing the option so I can get rid of the button?

Thanks,
Jim.

__________________
Thinkpad T22 800Mhz-512MB-120GB-wireless g, Thinkpad T23 1.12Ghz-1GB-200GB-Wireless n, Thinkpad T43 1.8Ghz-2GB-250GB-wireless g, Powerbook 400Mhz-G3-512MB-550GB-Airport g, PowerPC 500Mhz-G4-1GB-4TB-ethernet, Xtreme Gamer PC 3.8Ghz-4GB-2TB-ethernet, Compaq Presario 5000 Series-1.2Ghz-768MB-350GB-wireless n, IBM NetVista-2.6Ghz-512MB-40GB+2TB-ethernet
JimBoCol is offline   Reply With Quote
Old 07-31-2010, 03:27 PM   #2
Design Team
 
jamiemac2005's Avatar
 
Join Date: Jul 2007
Location: Coventry, UK
Posts: 2,181
OS: Win7, Ubuntu.


Re: Easy Web page question

Hey, yes there is.

Use the onchange event handler. Someone has done this before.

Essentially all you need to do is change the second piece of code to:
Code:
		<FORM METHOD=post>
		<p>
		<SELECT NAME="linkList" onchange="navigate(this.form)">
		<OPTION value="http://www.google.com"><selected>Google
		<OPTION value="http://www.yahoo.com">Yahoo
		</OPTION>
		</SELECT><INPUT TYPE = "button" NAME="GO" VALUE="Visit">
		</FORM>
Cheers,
Jamey

__________________
jamiemac2005 is offline   Reply With Quote
Old 08-01-2010, 10:36 PM   #3
Registered Member
 
JimBoCol's Avatar
 
Join Date: Apr 2010
Location: Clarksburg, WV
Posts: 137
OS: OS-9.22, OS-X Panther, OS-X Tiger, XP Pro SP3, Win 2K Pro SP4, Linux Umbutu 9.10, Linux Fedora 12


Re: Easy Web page question

Thanks!! Worked like a charm!!
__________________
Thinkpad T22 800Mhz-512MB-120GB-wireless g, Thinkpad T23 1.12Ghz-1GB-200GB-Wireless n, Thinkpad T43 1.8Ghz-2GB-250GB-wireless g, Powerbook 400Mhz-G3-512MB-550GB-Airport g, PowerPC 500Mhz-G4-1GB-4TB-ethernet, Xtreme Gamer PC 3.8Ghz-4GB-2TB-ethernet, Compaq Presario 5000 Series-1.2Ghz-768MB-350GB-wireless n, IBM NetVista-2.6Ghz-512MB-40GB+2TB-ethernet
JimBoCol is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is on
Smilies are on
[IMG] code is on
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Post a Question





Our Communities

Our communities encompass many different hobbies and interests, but each one is built on friendly, intelligent membership.

» More about our Communities

Automotive Communities

Our Automotive communities encompass many different makes and models. From U.S. domestics to European Saloons.

» More about our Automotive Communities

RV & Travel Trailer Communities

Our RV & Travel Trailer sites encompasses virtually all types of Recreational Vehicles, from brand-specific to general RV communities.

» More about our RV Communities

Marine Communities

Our Marine websites focus on Cruising and Sailing Vessels, including forums and the largest cruising Wiki project on the web today.

» More about our Marine Communities


All times are GMT -7. The time now is 01:19 AM.


Copyright 2001 - 2010, Tech Support Forum

Windows 7 - Windows XP - Windows Vista - Trojan Removal - Spyware Removal - Virus Removal - Networking - Security