Rollover menu / popup window

This is a discussion on "Rollover menu / popup window" within the JavaScript Forum section. This forum, and the thread "Rollover menu / popup window are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Dec 18th, 2006, 01:53
Junior Member
Join Date: Dec 2006
Location: illinois
Age: 20
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Rollover menu / popup window

I want to add a script to an image on a website, so that when a person puts their cursor on it, a menu with different links will pop up under it.

It doesn’t necessarily have to be done in JavaScript, if there is a better way.

Also I want the links to open in new windows with specific sizes.

If anyone has a good way to do this let me know.

Thanks in advance.
Reply With Quote

  #2 (permalink)  
Old Dec 18th, 2006, 09:39
Reputable Member
Join Date: Jul 2006
Location: Scotland
Age: 22
Posts: 357
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to snow
Re: Rollover menu / popup window

For the pop-up menu, the best I've found is the suckerfish technique:
http://alistapart.com/articles/dropdowns/

For the new window you'll need a javascript function, here's the details:
http://www.pageresource.com/jscript/jwinopen.htm

Please think long and hard before opening a new window without the user's consent though!:
Quote:
Opening up new browser windows is like a vacuum cleaner sales person who starts a visit by emptying an ash tray on the customer's carpet. Don't pollute my screen with any more windows, thanks (particularly since current operating systems have miserable window management). Designers open new browser windows on the theory that it keeps users on their site. But even disregarding the user-hostile message implied in taking over the user's machine, the strategy is self-defeating since it disables the Back button which is the normal way users return to previous sites. Users often don't notice that a new window has opened, especially if they are using a small monitor where the windows are maximized to fill up the screen. So a user who tries to return to the origin will be confused by a grayed out Back button.
Links that don't behave as expected undermine users' understanding of their own system. A link should be a simple hypertext reference that replaces the current page with new content. Users hate unwarranted pop-up windows. When they want the destination to appear in a new page, they can use their browser's "open in new window" command -- assuming, of course, that the link is not a piece of code that interferes with the browser’s standard behavior.
(Top ten mistakes in web design: http://www.useit.com/alertbox/9605.html)

Last edited by snow; Dec 18th, 2006 at 19:34.
Reply With Quote
  #3 (permalink)  
Old Dec 18th, 2006, 11:07
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Rollover menu / popup window

I agree about the popups. I don't use them at all on my site, even when linking to someone else's site. Users know how to use the back button, and they also know how to open links in new windows/tabs if they want to do so.
Reply With Quote
  #4 (permalink)  
Old Dec 18th, 2006, 16:10
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
Re: Rollover menu / popup window

You can also find a tutorial on css driven menu systems in the sticky at the top of the css forum.
Reply With Quote
Reply

Tags
menu, popup, rollover

Thread Tools

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
Attach sound file to Javascript rollover popup supanova75 JavaScript Forum 1 Oct 4th, 2007 14:47
Help: Problem with popup window in Flash buckmajor Flash & Multimedia Forum 3 May 22nd, 2007 15:02
Got to fit the image to 800x600 popup window kivanc JavaScript Forum 2 Dec 29th, 2006 20:12
Javascript popup window with ASP madhuri.t Classic ASP 0 May 3rd, 2006 10:42
Menu popup window opening from left to right. LoProphile JavaScript Forum 5 May 26th, 2005 16:16


All times are GMT. The time now is 10:29.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43