PDA

View Full Version : "Switch Content Script" Need ASAP Help PLZ!



GRAPHICA
07-18-2006, 08:18 PM
1) Script Title: Switch Content Script

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/switchcontent.htm

3) Describe problem::confused: I DONT KNOW HOW CAN I MANAGE MY CONTENT???:confused:

I'm using MD8 (Macromedia Dreamweaver 8) and this is the first time I'm using this script.

the thing that I donít understand is where can I Wright my content or how can I put a photo instead of content.

ddadmin
07-18-2006, 08:35 PM
If I understood you correctly, basically, you would just enter the HTML code you wish to show for each switch content in between the designated DIV tags of the code of Step 2, for example:


<h3 onClick="expandcontent(this, 'sc1')" style="cursor:hand; cursor:pointer"><span class="showstate"></span>What is JavaScript?</h3>
<div id="sc1" class="switchcontent">
My content 1
</div>


<h3 onClick="expandcontent(this, 'sc2')" style="cursor:hand; cursor:pointer"><span class="showstate"></span>Difference betwen Java & JavaScript?</h3>
<div id="sc2" class="switchcontent">
My content 2
</div>

and so on.

GRAPHICA
07-18-2006, 08:41 PM
here is the link that i work on http://test.mylooksurgery.com/gallery.html
and I did exact what the site said but nothing is function and instead of text i want to use the photos.
I 'm really :confused:

alexjewell
07-19-2006, 12:01 AM
I viewed the site
And it seems to be working fine.
To add an image instead of the text you have now, just do the following:



<h3 onClick="expandcontent(this, 'sc1')" style="cursor:hand; cursor:pointer"><span class="showstate"></span>What is JavaScript?</h3>
<div id="sc1" class="switchcontent">
<img src="image.gif">
</div>


Notice the img tag in place of the text.
It's as simple as putting the image in place of it.
You might have to go into the html intself with dreamweaver.
You can't do WYSIWYG with this script.