![]() |
| ||
| Creating a popup menu on mouse over I'm creating a website and I want to have a popup menu with additional links come up when a text image is moused over. I'm alright with HTML, but I know that this can't be done in HTML and I assume it's Javascript that I would need to use. Can anyone help me or point me in the direction of some resources that could help? I'm pretty rusty with web developement and I know almost nothing about javascript. |
| ||
| Re: Creating a popup menu on mouse over I'd get a book on JavaScript and read it. I used "JavaScript Demystified" by Jim Keogh. |
| ||
| Re: Creating a popup menu on mouse over You can create a new window using the window.open() funtion. This will help http://www.w3schools.com/htmldom/met_win_open.asp |
| ||
| Re: Creating a popup menu on mouse over Just go to the library and pick up a Javascript book. |
| ||
| Re: Creating a popup menu on mouse over You can use the dreamweaver from macromedia. In there you can find premade java-scripts that will do your job as well. :) |
| ||
| Re: Creating a popup menu on mouse over Quote:
Using spawned windows as popup menus is a naff approach. Alot of 'modern' browsers block out popups, or put them behind the active window. Also, you'd have to be careful to avoid multiple window.opens every time the user moves the mouse... You can make popup menus without any Javascript (using CSS)... but they only work well in those 'modern' browsers already mentioned. If using Javascript, look at moving and hiding/showing some 'menu HTML', or if appropriate, creating such a menu dynamically.. The code I'm posting is gratuitously commented, and has been tested on Opera 9, Firefox 2, and IE6. It will let you assign different menus to multiple objects; but the menus don't disapear very cleanly... You can hack the Javascript around to do things like, alter the position of the popup relatively, so it appears 'from' the parent element rather than over it; or even at the position of the mouse exactly. You also might want to make the popups disapear automatically when the user mouses out of the vicinity of the popup... I'll leave that to you to research: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> As said, a similar effect is afforded much more gracefully using only HTML and CSS. The following example is tested to work in Opera 9 and Firefox 2, but DOES NOT WORK IN INTERNET EXPLORER 6. It uses the CSS 'next element' selector; which doesn't work in IE6 (nor does parent:hover child, strangely enough). This menu WILL go away automagically when the user mouses away from it; but, as said, won't work with old browsers... <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| ||
| Re: Creating a popup menu on mouse over cant exactly remember the code, but it would be in http://dynamicdrive.com |
| ||
| Re: Creating a popup menu on mouse over Can u give me same functionality for gridview elements Please its urgent! I tryed but it shows allways first elmets data as popup and one more thing grid view have bounded coulumns. Please Help |
| All times are GMT -4. The time now is 3:22 am. |
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC