PDA

View Full Version : Add Images To Switch Content Script?



CrimsonDawn
11-09-2004, 05:39 AM
Script: Switch Content Script
URL: Switch Content (http://www.dynamicdrive.com/dynamicindex17/switchcontent.htm).

Hi all. I need a little help with the Switch Content Script found here (http://www.dynamicdrive.com/dynamicindex17/switchcontent.htm). What I am looking to do is add an image depending on the state of the menu (a little plus mark for the hidden state, and a minus for visible state), however I have no idea how to go about doing that.

I know, I know... Yes, I'm another n00b when it comes to this stuff, however I follow direction very well. I appreciate any help that can be offered. If you need more information, or I forgot to post something relevant, then please let me know. Thanks in advance! :)

cr3ative
11-09-2004, 02:13 PM
Slight offtopic here, but you could use http://www.treemenu.net/ <-- that website. It might just be what you're looking for, but then again it might not be.

cr3ative

CrimsonDawn
11-10-2004, 04:27 AM
Thanks cr3ative... that's a little too busy for my needs, though. I'll keep playing around with the script, but if anyone has a solution, I'm all ears... :)

Thanks again!

ausant
11-10-2004, 07:07 AM
ahh.. ,
where will you add the image and do you have the image url?

CrimsonDawn
11-10-2004, 09:22 AM
Hi ausant. The ideal location for the images would be directly before the header name (the clickable area to show/hide the content). I hope that makes sense...

The images are here for you to play with, use, whatever. They're public domain (not mine), so it's all good...

http://www.black-tower.org/dynamicdrive/toggle_off.gif <-- Used when the content is hidden

http://www.black-tower.org/dynamicdrive/toggle_on.gif <-- Used when the content is visible.

To give an example, since I seem to be fumbling with words, I'd like them to look like this if possible:

http://www.black-tower.org/dynamicdrive/toggle_off.gif Heading Off

Hope that makes more sense. :) Thanks for taking the time to reply!