Results 1 to 5 of 5

Thread: Conveyer Belt Slideshow background img instead of color

  1. #1
    Join Date
    Jul 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Conveyer Belt Slideshow background img instead of color

    hi guys
    can any one help me out with this?

    1) Script Title: Conveyor belt slide show

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

    3) Describe problem: How to modify this javascript to use a background image for the moving thumbnails instade of just a color?


    thanks 4 your help
    Last edited by jscheuer1; 07-30-2008 at 06:38 AM. Reason: fix link

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    In this line (highlighted):

    Code:
    if (iedom||document.layers){
    with (document){
    document.write('<table border="0" cellspacing="0" cellpadding="0"><td>')
    if (iedom){
    write('<div style="position:relative;width:'+sliderwidth+';height:'+sliderheight+';overflow:hidden">')
    write('<div style="position:absolute;width:'+sliderwidth+';height:'+sliderheight+';background-color:'+slidebgcolor+'" onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed">')
    write('<div id="test2" style="position:absolute;left:0px;top:0px"></div>')
    write('<div id="test3" style="position:absolute;left:-1000px;top:0px"></div>')
    write('</div></div>')
    }
    else if (document.layers){
    write('<ilaye
    Change background-color to just background. So you have:

    Code:
    write('<div style="position:absolute;width:'+sliderwidth+';height:'+sliderheight+';background:'+slidebgcolor+'" onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed">')
    Once you have that, you can use standard css style background properties (including an image URL) in this part of the script:

    Code:
    //configure background color:
    slidebgcolor="#EAEAEA"
    Example:

    Code:
    //configure background color:
    slidebgcolor="url('some.gif')"
    - John
    ________________________

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

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

    Default

    thanks 4 replying
    sorry for that question that may be silly
    but i'm still new in scripts world...
    if the image is in the directory
    http://www.xxxxxx.com/test.gif

    what i should write?

    slidebgcolor="('http://www.xxxxxx.com/test.gif')"
    or
    slidebgcolor="http://www.xxxxxx.com/test.gif"


    thanks

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Neither. Use a standard quoted css background style string:

    Code:
    slidebgcolor="url('http://www.xxxxxx.com/test.gif')"
    This will also work:

    Code:
    slidebgcolor="url(http://www.xxxxxx.com/test.gif)"
    You can include anything that is valid for the background style property. So you can include other valid values:

    Code:
    slidebgcolor="white url(http://www.xxxxxx.com/test.gif) repeat-x center center"
    For more on possible values for the css background style property, see your favorite css style reference or:

    http://www.eskimo.com/~bloo/indexdot...colorbg/bg.htm
    - John
    ________________________

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

  5. #5
    Join Date
    Jul 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thanks 4 your great help ..
    sorry for not explaining what exactly i need from the beginning
    what exactly i need is forcing the slde images to slide inside a certain area in the background image (see the below image)



    to be just like a movie sliding+keeping the background image and slide show to be resizable with every screen resolution the user use...(Note I'm using the script you edited for some one to Specify the slider's width (in pixels or %) not the one has the width only in pixels
    here it is
    http://www.dynamicdrive.com/forums/s...+width+percent
    i logged to the test page which made by the topic starter which is in the post No. 10 and copyed the code from it and now i'm using it after deleting the top blue frame image .....
    so, what do you recomend?
    thanks alot

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
  •