PDA

View Full Version : switch content script II - include text as link?



ahs10
05-23-2007, 10:35 PM
1) Script Title:
switch content script II
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex17/switchcontent2.htm
3) Describe problem:
i have the script working fine, it expands the content and switches the icon... when you click the icon. is there a way i can add the text next to the icon to the hotspot as well? i tried putting the text in the span tag as well, but then my text disappears.

ahs10
05-24-2007, 01:36 PM
hmmm, any other site suggestions out there to find the answer to this question then?

caws1111
05-30-2007, 03:17 PM
I am trying to do the same thing. Not sure yet how to.. If I find out I will let you know.

ahs10
05-30-2007, 03:22 PM
i'm sorry, but i forgot i posted this question. i found a solution to my problem. as it turns out, we are using the wrong script in order to do this. check out the regular switch content script at http://www.dynamicdrive.com/dynamicindex17/switchcontent.htm

i'm not quite sure what the differences between the script we were using (switch content script II) and the regular switch content script, but the regular one works fine for my needs. it collapses and expands content, switches the image in the link, and the text of the link is included in the hotspot of the link as well.

hope that helps!

caws1111
05-30-2007, 03:47 PM
Thanks , I want both the icon, the color switch and for it to work in tables. I tried the other and didnt get it to work.

caws1111
05-30-2007, 03:57 PM
ok I got it.. I had some missing code..thanks.