HighDots Forums  

Creating null links for image swap

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Creating null links for image swap in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
danfb08
 
Posts: n/a

Default Creating null links for image swap - 08-28-2008 , 05:16 AM






I have this problem with Internet Explorer 6 for PC which moves the webpage to
the top of the browser whenever the swap image ref is clicked. It will do this
if the link is set to #, if it is set to javascript:; then IE wont display the
image which I think has something to do with preloading. SO, does anyone know
another null link style I could use. I'm working in Dreamweaver CS3 for Mac.


Reply With Quote
  #2  
Old   
Murray *ACE*
 
Posts: n/a

Default Re: Creating null links for image swap - 08-28-2008 , 07:28 AM






Show us your code, and I'll show you how to fix it.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"danfb08" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
I have this problem with Internet Explorer 6 for PC which moves the webpage
to
the top of the browser whenever the swap image ref is clicked. It will do
this
if the link is set to #, if it is set to javascript:; then IE wont display
the
image which I think has something to do with preloading. SO, does anyone
know
another null link style I could use. I'm working in Dreamweaver CS3 for
Mac.



Reply With Quote
  #3  
Old   
danfb08
 
Posts: n/a

Default Re: Creating null links for image swap - 08-28-2008 , 10:36 AM



Thanks but someone from another forum suggested use return false at the end of
the ahref:

<a href="javascript:;" class="refnumber"
onclick="MM_swapImage('grpA','','images/product/handcartsandtrucks/BC1111.jpg',0
);return false">T-handle</a>

I've tested it in Firefox(mac), IE6 and 7 for PC and it works fine.



Reply With Quote
  #4  
Old   
Murray *ACE*
 
Posts: n/a

Default Re: Creating null links for image swap - 08-28-2008 , 11:10 AM



That was a good recommendation.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"danfb08" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Thanks but someone from another forum suggested use return false at the
end of
the ahref:

a href="javascript:;" class="refnumber"
onclick="MM_swapImage('grpA','','images/product/handcartsandtrucks/BC1111.jpg',0
);return false">T-handle</a

I've tested it in Firefox(mac), IE6 and 7 for PC and it works fine.




Reply With Quote
Reply




Thread Tools
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

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.