Lost Password?

  #1 (permalink)  
Old 01-06-2007, 09:00 AM
TcM's Avatar   
TcM TcM is online now
Terminator - I'll be back
 
Join Date: Aug 2006
Location: In a technologic world :p
Posts: 5,731
Rep Power: 47
TcM is a jewel in the roughTcM is a jewel in the roughTcM is a jewel in the rough
Default Javascript: Navigate from a Drop down menu

Introduction:-
Here I will show you how to go to different websites from a drop down menu

Let's Begin:-
Make this code between the HEAD tags:-

Code:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function GotoURL(form){
var URL = document.form.site.options[document.form.site.selectedIndex].value;
window.location.href = URL;
}
// End -->
</SCRIPT>
and make this between the BODY tags:-

Code:
<form name="form">
<select name="site" size=1>
<option value="">Select where you want to go
<option value="http://www.time4videos.net.tc">Time4Videos
<option value="http://www.codecall.net">CodeCall
</select>
<input type=button value="Go there" onClick="javascript:GotoURL(this)">
</form>
Explanation:-
Code:
.......
<option value="">Select where you want to go
<option value="http://www.time4videos.net.tc">Time4Videos
<option value="http://www.codecall.net">CodeCall
.......
Include all the URL's here!

Conclusion:-
Code is attached, and feedback is welcome!
Attached Files To view attachments your post count must be 1 or greater. Your post count is 0 momentarily.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum
Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall


Business Directory | Technology Blog | Windows Help

Last edited by TcM; 01-06-2007 at 09:02 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 01-06-2007, 08:26 PM
xtraze xtraze is offline
Programming God
 
Join Date: Dec 2006
Location: Sri lanka
Posts: 921
Rep Power: 0
xtraze is on a distinguished road
Send a message via MSN to xtraze Send a message via Skype™ to xtraze
Default

You forgot something lol
</option>
Fix this ASAP. I don't know but I use </option>. If it's not needed, then ok.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-07-2007, 03:31 AM
TcM's Avatar   
TcM TcM is online now
Terminator - I'll be back
 
Join Date: Aug 2006
Location: In a technologic world :p
Posts: 5,731
Rep Power: 47
TcM is a jewel in the roughTcM is a jewel in the roughTcM is a jewel in the rough
Default

Quote:
Originally Posted by xtraze View Post
You forgot something lol
</option>
Fix this ASAP. I don't know but I use </option>. If it's not needed, then ok.

There is no need of that! Remember less code = less time your page will take to load
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum
Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall


Business Directory | Technology Blog | Windows Help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-08-2007, 01:45 AM
xtraze xtraze is offline
Programming God
 
Join Date: Dec 2006
Location: Sri lanka
Posts: 921
Rep Power: 0
xtraze is on a distinguished road
Send a message via MSN to xtraze Send a message via Skype™ to xtraze
Default

I was using </option> always dude, you may find a toolbar at the top of XTRaze.NET - Preloading images.... which is Edited by me for myself. And I was using </option> there too. I just saw this on another site and made a lot of changes and still going on to make this good for me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Menu Item options. aravot easyContact 3 12-13-2007 02:27 PM
Counting Files with JavaScript Matt JavaScript and CSS 5 08-01-2007 12:02 PM
JSP = JavaScript? Ronin JavaScript and CSS 1 08-13-2006 06:56 AM


All times are GMT -5. The time now is 10:26 AM.

Contest Stats

dargueta ........ 93.00000
John ........ 87.50000
Xav ........ 50.00000
MeTh0Dz ........ 20.00000
gaylo565 ........ 18.00000
Johnnyboy ........ 3.00000

Contest Rules

Ads