Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>My first approach would be to assign the circles to empty css classes just to group them and select them with jquery. For example, circles 1, 4 and 5 could have the class "nav1_links". Remember that you can assign multiple classes to an element, which is great if you want to have one link be under the umbrellas of two nav links, e.g. nav 1 highlights 1, 4 and 5 and nav 2 highlights 1, 2 and 3 -- so circle 1 would have the attribute <code>class="nav1_links nav2_links"</code>. Then you could use jquery to access the appropriate circles:</p> <pre><code>$("#nav1").hover(function(){ this.src = this.src.replace("_org","_over"); // Change src for nav1 $(".nav1_links").attr("src", "rolloverState.png"); // Change src for all corresponding circles }); </code></pre> <p>If the image for each circle is different, however, this gets a bit more tricky. The easiest way to handle this (though not the cleanest) would be to just repeat that line for each circle involved, but replace the class name ".nav1_links" with the id name of the individual circle ("#circleID").</p> <p>The more flexible (and complex) way would be to put all possible src values for one circle into an array, then use .each() to iterate through all the relevant circles for the currently active nav link and apply the appropriate src from the array of srcs for each circle. But arrays and for loops are a whole separate question, so if that doesn't make sense, then just stick with the easy route for now (I'm not sure how much scripting experience you have).</p> <p>Does that answer your question? I admit I'm a bit confused about your notion of disjointed/secondary rollovers.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload