View Single Post
Old 10-22-2007, 09:44 AM   #1 (permalink)
BluBarry
Registered User
 
Join Date: Aug 2006
Posts: 144
OS: WinXP Pro


Free Code & Tips

Hi Gang ~ Yep I know, most of you can produce this code in your sleep but I thought I'd like to throw in a simple html or js code once in awhile for those that could use them.

Any Code I submit can be altered to do or look anyway you wish. If you need help with this or that, shoot me a PM. One last thing, I guess you can say, I'm old school so much of what I toss in is Old School HTML instead of letting Flash Templates do the work for you (although I use that stuff too)

Today's EZ Code is a simple Drop Down Menu

*********************************************************
<!-- TWO STEPS TO INSTALL PULLDOWN MENU:

1. Paste the coding into the HEAD of your HTML document
2. Add the last code into the BODY of your HTML document -->

<!-- STEP ONE: Copy this code into the HEAD of your HTML document -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function formHandler(form){
var URL = document.form.site.options[document.form.site.selectedIndex].value;
window.location.href = URL;
}
// End -->
</SCRIPT>
</HEAD>

<!-- STEP TWO: Paste this code into the BODY of your HTML document -->

<BODY>

<center>
<form name="form">
<select name="site" size=1>
<option value="">Select Category
<option value="example.html">MyPage
<option value="example2.html">My 2nd Page
<option value="http://www.footballforum.com">My Friend's Page
<option value="/folder/example3.html">Page in different folder
<option value="http://www.techsupportforum.com">Our Site
<option value="one_more_page.html">etc,etc,etc,etc,
</select>
<input type=button value="Go!" onClick="javascript:formHandler()">
</form>
</center>

*****************************************************

Comments & Questions post here!
*
*
__________________
The Source Code and a good Terminology Reference Book can be the greatest Programming Instructor you'll ever find ...
Did you know Windows Notepad, Microsoft Word or any Text Rendering & Editing Program is all you need to build Web Pages?

Last edited by Inactive; 11-03-2007 at 06:54 PM. Reason: link to original thread
BluBarry is offline  
Important Information
Join the #1 Tech Support Forum Today - It's Totally Free!

TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free.

Join TechSupportforum.com Today - Click Here