so I implemented a bit of jQuery, which basically switches the content using the slider that was activated by the <a> tag. Now, thinking about it, rather, there is a DIV that holds the link as a link to itself.
The jQuery I'm using sits in my head, looks like this:
<script type="text/javascript"> function slideonlyone(thechosenone) { $('.systems_detail').each(function(index) { if ($(this).attr("id") == thechosenone) { $(this).slideDown(200); } else { $(this).slideUp(600); } }); } </script>
i used this as an index type window, so when I click on the <a> tag, which used to be an image, there are several products, it will display a little of the content below, describing the product details:
<div class="system_box"> <h2>BEE Scorecard database</h2> <p>________________</p> <a href="javascript:slideonlyone('sms_box');"></a> </div>
product details are wrapped in this div.
<div class="systems_detail" id="sms_box"> </div>
so when you click on what used to be an image *, it ran the slideonlyone ('div_id_name') function. the above function first closes all other divs with the class name 'system details', and then opens the / slides div with the identifier that was passed to the slideonlyone function. this way you can switch product details and not show them all at once.
note I saved the <a> tag to show you what was there, I will get rid of it.
note: I had the idea of ββjust wrapping the entire div with an <a> tag, but is this good practice?
So now I am wondering, since you need JavaScript to run onclick in a div tag, how do you write it so that it still runs my slide function?