Results 1 to 3 of 3

Thread: FadeSlideShow

  1. #1
    Join Date
    Mar 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default FadeSlideShow

    [SOLVED]

    1) Script Title: FadeSlideShow

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

    3) Describe problem: I've trying to solve this problem for two hours. I'm tired, this is probably very simple but I haven't succeed in putting a margin of 20px on the slideshow.

    Even if I create a style for fadeshow1 with margin-left of 20 px it won't go 20 px right. It stays in the same position and I wanted this to be alined with the text on my website: http://oscers.0fees.net/

    Thanks in advance for your help!
    Last edited by marquezs; 03-31-2010 at 12:59 PM.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,920
    Thanks
    43
    Thanked 3,187 Times in 3,151 Posts
    Blog Entries
    12

    Default

    This:

    Code:
    document.all.fadeshow1.style.marginLeft = "20px";
    is not a good way to set the margin. It only works in a couple of browsers, and where you have it, it's too soon to even do it in those.

    Also, this is redundant:

    HTML Code:
    <link href="main.css" rel="stylesheet" type="text/css" />
    <link href="main.css" rel="stylesheet" type="text/css" />
    Get rid of one of them.

    The preferred way to set style is in the stylesheet. So, in main.css, add this at the bottom:

    Code:
    #fadeshow1 {
    	margin-left: 20px;
    }
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Mar 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Wow, it worked, thank you!

    Believe it or not, I have tried what you side before I posted the problem but this time when I copied the code you wrote it worked.

    It must have been a spelling mistake or something like that.

    Thanks!

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
  •