Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
|
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 17th, 2005, 10:16 AM
Friend of Wrox
 
Join Date: May 2004
Posts: 212
Thanks: 0
Thanked 0 Times in 0 Posts
Default this.onmouseover hyperlink textchange effect

Hi everyone,

Can the following HTML code be written into a script that would affect the entire contents of the page? Maybe loop through the links array applying the effect to each link as it goes? Here is the HTML:

<a name ="des1"
      target="bottomframe" href="PostCode%20Search/ab.htm">AB to CW</a>

Obviously I'd have to try and catch the value of the text at mouseover and mouseout, is there a function to do this? If there's a CSS solution that would be appreciated too.

Thanks In Advance
interrupt

__________________
\'sync\' &lt;cr&gt;
The name specified is not recognized as an internal or external command, operable program or batch file.
 
Old February 17th, 2005, 10:34 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919
Default

Hi Interrupt !!
Try this one hope this will help you
<a href="test.asp" onmouseover="mover(this)" onmouseout="mout(this)">AB to CW</a>
<script>
function mover(obj)
{
//alert(obj.outerHTML) //to get all the values from <a> to </a>

alert(obj.innerHTML)
//alert(obj.href) //to retrieve the values of test.asp file
}
function mout(obj)
{
//alert(obj.outerHTML) to get all the values from <a> to </a>
alert(obj.innerHTML)
}
</script>


Cheers :)

vinod





Similar Threads
Thread Thread Starter Forum Replies Last Post
JavaScript TextChange(onChange) inside a grid view babadogi ASP.NET 2.0 Basics 0 January 14th, 2007 07:34 PM
hi xml toggle effect gauravkg XSLT 1 September 8th, 2006 09:04 AM
Effect of changing option value anshul Javascript How-To 4 May 17th, 2005 06:05 AM
OnmouseOver effect with ASP:datagrid scotty General .NET 0 January 12th, 2005 06:32 PM
How to create typing effect with text? [email protected] Flash (all versions) 2 March 26th, 2004 01:06 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.