Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 06-27-2007, 08:00 PM   #1
Baseband Member
 
hatedguilt's Avatar
 
Join Date: Feb 2006
Posts: 43
Send a message via AIM to hatedguilt Send a message via Yahoo to hatedguilt
Default opening a link with hover?

is it possible to open a link with just a hover instead of clicking?
__________________

__________________
JustEatAtFatJoes
hatedguilt is offline   Reply With Quote
Old 06-27-2007, 08:13 PM   #2
Baseband Member
 
Join Date: May 2007
Posts: 42
Send a message via AIM to yohed55
Default Re: opening a link with hover?

My guess would be you would assign an OnMouseOver javascript function to the said link.

like so
Code:
<a href="http://www.somesite.com" OnMouseOver="javascript: myfunction()">Display text</a>
and the function would look something like

Code:
function myfunction() {
window.location = "http://www.somesite.com"
}
I didn't try any of this. You might have to take the HREF out of the A tag.

that's my $0.02

-Sam
__________________

yohed55 is offline   Reply With Quote
Old 06-30-2007, 04:55 PM   #3
Site Team
 
David Lindon's Avatar
 
Join Date: Dec 2002
Posts: 15,233
Default Re: opening a link with hover?

Quote:
Originally Posted by yohed55 View Post
My guess would be you would assign an OnMouseOver javascript function to the said link.

like so
Code:
<a href="http://www.somesite.com" OnMouseOver="javascript: myfunction()">Display text</a>
and the function would look something like

Code:
function myfunction() {
window.location = "http://www.somesite.com"
}
I didn't try any of this. You might have to take the HREF out of the A tag.

that's my $0.02

-Sam

Yes that would work.

If you want to open a new browser window you can use
window.open("http://www.a.com");
__________________
[url=http://www.LNXPS.NET]LNXPS.NET - The XPS Library]
David Lindon is offline   Reply With Quote
Reply

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 Off



All times are GMT -5. The time now is 12:19 PM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0