Results 1 to 5 of 5

Thread: Easyish Cmotion image gallery query

  1. #1
    Join Date
    Oct 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Easyish Cmotion image gallery query

    Ok I've got this script working great - can anyone tell me how I can increase the width of the visible scroll effect? Currently it only takes up about 300 pixels - I'd like it to take up 800 across the screen?


    Thanks!

  2. #2
    Join Date
    Oct 2005
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi alphabeta,

    I believe your talking about the CMotion Image Gallery script. Just change the red value to the desired width.

    <div id="motioncontainer" style="position:relative;width:400px;height:100px;overflow:hidden;">

    Hope it works.

  3. #3
    Join Date
    Oct 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default .

    Ah! obvious now - I was trying to do it too early in the morning!

    Just before I start on a gung ho conversion plan - is it possible to force an image to be certain dimensions? I have hundreds of images around 1024 x 1024 pixels - if I could force them to display in the list at 100 x 100, that'd save a lot of time - I don't need to worry about bandwidth etc as it's a menu for a cd...

    Is this possible or do I need to start converting?!

  4. #4
    Join Date
    Oct 2005
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    hi again,

    yeah its possible, just change the dimensions in the container line:

    example:

    <nobr id="trueContainer"><a href="#" onClick="return modifyimage('displayarea', 0)"><img

    src="image/hugepic.gif" height="100" width="100" border=1></a> <a href="#" onClick="return

    modifyimage('displayarea', 1)">




    something like that anyway. i must warn that im using 2 scripts at a time to display my pics and im not sure where one script ends and the other starts.
    but the solution basically is to insert the height and width part...

  5. #5
    Join Date
    Oct 2005
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ok I cleaned my script from the other script and here is how it looks:


    <div id="motioncontainer" style="position:relative;width:250px;height:200px;overflow:hidden;">
    <div id="motiongallery" style=" visibility: visible; position: absolute; top: 0; left: 0">
    <nobr id="trueContainer"><a href="#"><img src="pictures/thumb1.jpg" height="100" width="75" border=1></a> <a href="#"><img src="pictures/thumb2.jpg" height="50" width="200" border=1></a> <a href="#"><img src="pictures/thumb3.jpg" height="150" width="150" border=1></a> </nobr></div></div>


    With this code you have three same sized thumbs being forced to display at different sizes.

    You could combine this with some style tags in the head I learned from john scheuer:

    <style type="text/css">
    #motiongallery img {
    vertical-align:middle;
    }
    </style>

    Now the thumbnails are aligned vertically and everything looks neat.

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
  •