Results 1 to 4 of 4

Thread: "Switch Content Script" Need ASAP Help PLZ!

  1. #1
    Join Date
    Jul 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation "Switch Content Script" Need ASAP Help PLZ!

    1) Script Title: Switch Content Script

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...tchcontent.htm

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

    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.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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:

    Code:
    <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>
    Code:
    <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.

  3. #3
    Join Date
    Jul 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

  4. #4
    Join Date
    Mar 2006
    Location
    Cleveland, Ohio
    Posts
    574
    Thanks
    6
    Thanked 5 Times in 5 Posts

    Default

    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:

    HTML Code:
    <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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •