close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

link triggers

Thread began 6/06/2016 5:39 am by Jamie | Last modified 6/06/2016 1:41 pm by Ray Borduin | 60 views | 1 replies |

Jamie

link triggers

Hey Ray

Been searching for ages to see how (or even if) this can be done and would really appreciate any input you may have please?

Basically I have this results page where the results lead to product items.

<div class="container resultsWrapper">
<a href="shop/<?php echo($Categories->getColumnVal("CatPermalink")); ?>/<?php echo($Categories->getColumnVal("ProdPermalink")); ?>" class="responsive-picture resultsImageNoOpcaity foo">

<?php if ("".($Categories->getColumnVal("ProductImage")) !="noimage") { ?>
<img alt="Placeholder Picture" src="./images/products/<?php echo($Categories->getColumnVal("ProductImage")); ?>" width="280" height="280">
<?php } else { ?>
<img alt="Placeholder Picture" src="./images/cms_icons/no-image.jpg" width="280" height="280">
<?php } ?>

<?php if ("".($Categories->getColumnVal("ProductImageS1")) !="noimage") { ?>
<img alt="Placeholder Picture" src="./images/products/<?php echo($Categories->getColumnVal("ProductImageS1")); ?>" width="280" height="280">
<?php } else { ?>
<img alt="Placeholder Picture" src="./images/cms_icons/no-image.jpg" width="280" height="280">
<?php } ?>
</a>

<a class="link-text resultsTitle" href="shop/<?php echo($Categories->getColumnVal("CatPermalink")); ?>/<?php echo($Categories->getColumnVal("ProdPermalink")); ?>"><?php echo($Categories->getColumnVal("ProductName")); ?></a></div>



As you can see there is an image area acting as a link (and this is a swap image using css) as well as an <a href> acting as a link to the same target as the image.

What I am trying to do is that when a visitor hovers over either the image or the <a href> it triggers the on state of the other element. So, for example, if you hover over the image not only does the swap image trigger, but also the active state of the <a href> and vice versa

Thanks in advance

Jamie

Sign in to reply to this post

Ray BorduinWebAssist

You can write javascript using the onmouseover event that does anything. It would just have to be written by hand. I could help with that in a premier support ticket.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...