Very elegant and concise.
If you are concerned with dragging the onclick event off the image, why not change --onclick="buttontoggle(this)" to --onmousedown="buttontoggle(this)" ?
Try adding these two layers. It works ok for me. You just need to fill-in the heights, widths and names of the images and put in your own script then try it. If it is what your looking for, then position and re-size the layers where you need them.
<div style="position: absolute; width: 100px...
Many thanks, I plugged in you suggestion and the function functioned for the first time in a week!!! I did not understand RegExp() was an object until now.
-->classefied
Try this- first download two example buttons from me on the web,from:http://www.momopic.com/db/pic.php?u=158hUJ5y&i=1011 and:http://www.momopic.com/db/pic.php?u=158hUJ5y&i=1012 saving them to the same file as your HTML page is in, naming them as: "go1.gif" and "go2.gif" respectively. Then go to...
I have a var(array) 'highlighted', which contains short sub-strings like 'd1;d4;d12;d110;'
and when I call the function using- remv(d1), the substring remains in the string - no matter what.
The [highlight #FF99FF]function remv(str){
var RegExp= "/", noHighlight = ""
noHighlight= '\;' ...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.