User CP FAQ Calendar Search New Posts Contacts Log Out Rules Guidelines Check Out Custom Custom Logo Design by LogoBee. Website Design and Free Logo Templates available.
Flash Website Builder- Trendy Site Builder is a Flash Site Building tool that helps users build stunning websites.
SMS enable your application via Clickatell’s fast, simple and reliable API's, built to integrate with any system. Click here to learn more. > :: Client side development > JavaScript programming > DOM and JSON scripting
HREF link with rollover image swap
Welcome, jclarke90620.
You last visited: 08-17-2012 at 04:36 PM
Private Messages: Unread 0, Total 0.

Before you post, read our: Rules & Posting Guidelines

Thread Tools Search this Thread

08-17-2012, 01:20 PM PM User | Report this post #1
New to the CF scene

Join Date: Aug 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
HREF link with rollover image swap


I'm using an image for an HREF link and I want the image to swap when hovered over with the cursor. I am using an external javascript source file.

External file:
function ChangeTab( tab_name, tab_src )
document[tab_name].src = tab_src;

<A HREF="/menu.htm" onMouseOver="ChangeTab( menu, 'gfx/abouttabon.jpg' );"
onMouseOut="ChangeTab( menu, 'gfx/ordertabon.jpg' );">

<IMG SRC="gfx/menutaboff.jpg" NAME="menu" WIDTH=185 BORDER=0>

I have also tried...ID="menu" in the <IMG SRC=... tag. The link works fine, but the image won't swap. What am I doing wrong?

Any assistance would be greatly appreciated.

View Public Profile
Send a private message to jclarke90620
Send email to jclarke90620
Find More Posts by jclarke90620
Add jclarke90620 to Your Contacts

Bookmarks StumbleUpon Google Digg

Edit Tags Tags

Jump To Top of Thread

vBulletin Message

Cancel Changes

Quick Reply
The following errors occurred with your submission

Colors BlackSienn...Dark O...Dark G...Dark S...NavyIndig...Dark S...Dark R...Dark O...OliveGreenTealBlueSlate...Dim Gr...RedSandy...Yello...Sea Gr...Mediu...Royal...Purpl...GrayMagen...Orang...Yello...LimeCyanDeep S...Dark O...Silve...PinkWheatLemon...Pale G...Pale T...Light...PlumWhite

Quote message in reply?

Posting Quick Reply - Please Wait

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Show Printable Version
Email this Page
Subscribe to this Thread
Add a Poll to this Thread Search this Thread:

Advanced Search

Posting Rules
You may post new threads
You may post replies
You may post attachments
You may edit your posts


BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Forum Rules
Forum Jump
User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home :: Client side development JavaScript programming DOM and JSON scripting Ajax and Design JavaScript frameworks Post a JavaScript HTML & CSS XML Flash & ActionScript Adobe Flex Graphics and Multimedia discussions General web building Site reviews Building for mobile devices :: Server side development Apache configuration Perl/ CGI PHP Post a PHP snippet MySQL Other Databases Ruby & Ruby On Rails ASP ASP.NET Java and JSP Other server side languages/ issues ColdFusion Python :: Computing & Sciences Computer Programming Computer/PC discussions Geek News and Humour Web Projects and Services Marketplace Web Projects Small projects (quick fixes and changes) Medium projects (new script, new features, etc) Large Projects (new web application, complex features etc) Unknown sized projects (request quote) Vacant job positions Looking for work/ for hire Project collaboration/ partnership Paid work offers and requests (Now CLOSED) Career, job, and business ideas or advice Domains, Sites, and Designs for sale Domains for sale Websites for sale Design templates and graphics for sale :: Other forums Forum feedback and announcements

All times are GMT -7. The time now is 05:00 PM. hosting | Web Hosting UK | Dedicated Server Hosting | Shareware Junction | Software Geek | UK Reseller Hosting | Flash file uploader | Cloud Server | Web Hosting Australia
Home - Contact Us - Archives - Link to CF - Resources - Top

Powered by vBulletin®
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.