Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: PLEASE HELP... Very simple Question........Regarding CMOTION......

  1. #1
    Join Date
    Aug 2007
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default PLEASE HELP... Very simple Question........Regarding CMOTION......

    Hi,

    I know this is terribly lame, but i have been out of it for a while.

    I am at a loss as to how to insert C motion Gallery into a existing HTML page ?

    Do i need to set links referring to the external .Css and .Js files ?



    In short, im just wanting to add Cmoton to a page. and i have completely forgotten the steps involved.

    Any help be GREATLY APPRECIATED!, *and will bring you a lifetimes supply of good Karma LOL :P

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    http://www.dynamicdrive.com/dynamici...iongallery.htm

    That's the directions and it's explained pretty clearly.

    If you get stuck along the way, tell us where and we can probably help.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Aug 2007
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Im not sure on where to place the .css and .js files ?


    So far, i have placed the first script in the "header" section of the code.

    As for inserting the other html piece in the BODY section, this is where i get confused.

    Do i insert it into a Table ? . Do i have to link anything that refers to those external .css and .js docs ? do they belong in a particular folder ? or do i just dump them in with everything else ?

  4. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    The files are referenced with their respective tags, like <script .... src="something.js">
    If there isn't anything else than just a filename, they go in the same folder. If it said "myfolder/something.js", then you'd put them in a folder.

    As for body... here's the basic layout of a (valid) webpage:
    Code:
    <html>
    <head>
    <title>>Hi</title>
    ////scripts
    ////CSS
    </head>
    <body>
    your stuff here
    </body>
    </html>
    In short, there are two sections of the page, within <html>...</html>, the <head> and the <body>. Head sets up the page. Do you want it to automatically refresh? Use a script? Set the styles? Character encoding? Title? General properties for the page? Body, on the other hand, just is the content. It's where stuff goes, and can use the content of the <head> section to style/modify it.

    I'd suggest taking a look at some html tutorials.

    http://w3schools.com is a good place to start.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  5. #5
    Join Date
    Aug 2007
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks Djr........

    I will absolutely, i need to brush up.

    The problem now, is how to get Cmotion centered correctly inside a IFRAME, so it appears seamless.

    I am guessing this is the only way to display Cmoton on a exsisting page ? I tryed putting it into a table, and it would not scroll.


    Lastly, if i was to give you log in details, would you be able to take a look for me ?

    I am even willing to make a small donation, if you can assist me on this one occasion!........ *sigh* yeah im that desperate.

    It sounds so simple.

    A very basic html page. I just wanted Cmotion located bottom center, continious and scrolling on page load.

  6. #6
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Take a look at the developer's view.

    I think it might, at least for this script, but a little easier to follow.

    http://www.dynamicdrive.com/dynamici...allery_dev.htm

    In the javascript, you'll find this near the top:
    Code:
     //1) Set width of the "neutral" area in the center of the gallery.
    var restarea=6;
     //2) Set top scroll speed in pixels. Script auto creates a range from 0 to top speed.
    var maxspeed=7;
     //3) Set to maximum width for gallery - must be less than the actual length of the image train.
    var maxwidth=1000;
     //4) Set to 1 for left start, 0 for right, 2 for center.
    var startpos=0;
     //5) Set message to show at end of gallery. Enter "" to disable message.
    var endofgallerymsg='<span style="font-size: 11px;">End of Gallery</span>';
    You should be able to just edit those values, including the one for centering.


    Certainly shouldn't need to put it in an iframe.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  7. #7
    Join Date
    Aug 2007
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    . I cannot understand. Why wont it scroll now ?

    This is proving much more difficult then it should be

  8. #8
    Join Date
    Aug 2007
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    DJR33

    Ive sent you a e-mail...........

    I've had it...... it's 12am, ive been on this since 1pm today .................


    I know you owe me nothing, but i am asking for your educated help....

    Now i am off to go beat the crap out of some pillows LOL or do Yoga or something ! *SIGH*

  9. #9
    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

    It really is pretty easy if you just follow the instructions on the demo page. I'm not sure whether or not all of the advice you have received in this thread was clear or not though. In any case, the easiest way for any of us to help you is for you to just do the best that you can and then put that page up (working or not) live somewhere that we can have a look at it.

    Please post a link to the page on your site that contains the problematic script so we can check it out.
    - John
    ________________________

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

  10. #10
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Well, I'm confused.
    The ftp is denying me access (based on the login info you sent with the email, which I obviously won't be posting here).

    The source code has a ton of javascript in it, which *might* cause some trouble interacting with cmotion. not sure on that. However, I don't really see where you want it inserted. Do you just want to replace the current design with cmotion entirely? Can that other javascript be removed?

    I would recommend taking the "developer's view" source code and starting your page over based on that. Then just add in your existing code (*Save a backup of your page first!*) to the new page, and it should be fine.

    Since I can't see what you tried, I have no idea why it wasn't working.

    http://www.esolute.com/ is the page, John, if you want to take a look.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

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
  •