You cannot remove the class, but you can use it in your stylesheet if you want to. Alternatively, you can add a class or classes and it will still work, then you can use the other class(es) for styling. You can also add one id*. So you could do:
Code:
<div id="slideshowtoggler"><a href="#" class="prev myclass
"><img src="images/left.png" style="border-width:0" /></a> <span class="status" style="margin:0 50px; font-weight:bold; color:white;"></span> <a href="#" class="next"><img src="images/right.png" style="border-width:0" /></a></div>
or:
Code:
<div id="slideshowtoggler"><a href="#" class="prev myclass anotherclass
"><img src="images/left.png" style="border-width:0" /></a> <span class="status" style="margin:0 50px; font-weight:bold; color:white;"></span> <a href="#" class="next"><img src="images/right.png" style="border-width:0" /></a></div>
or:
Code:
<div id="slideshowtoggler"><a href="#" class="prev" id="myid"
"><img src="images/left.png" style="border-width:0" /></a> <span class="status" style="margin:0 50px; font-weight:bold; color:white;"></span> <a href="#" class="next"><img src="images/right.png" style="border-width:0" /></a></div>
Then use one or more of those to style it in the stylesheet. But you can also use the existing class as well. The only requirement is that it still have the "prev" class.
Like you could remove all style from the toggler div:
Code:
<div id="slideshowtoggler"><a href="#" class="prev"><img src="images/left.png" /></a> <span class="status"></span> <a href="#" class="next"><img src="images/right.png" /></a></div>
Then in your stylesheet you could have:
Code:
#slideshowtoggler img {border-width:0;}
#slideshowtoggler .status {margin:0 50px; font-weight:bold; color:white;}
If you wanted to do something particular with just with the previous button:
Code:
#slideshowtoggler .prev {position: relative; left: -10px;}
Or as I say, if you already have a class for image links that you want to use, just add it. The only requirement is that you also keep the classes used by the slideshow to find its button and status elements.
*An element can have a virtually unlimited amount of classes added to it and they do not have to be unique to that element on that page. An element may also have one and only one id, which should be unique to it on that page. Any or all of these classes and the one id may be used singly or in combination to style the element and/or to incorporate it into a script. Since the script is already using certain classes, those must remain, but they can still also be used for styling, or other class(es) may be added.
Bookmarks