+ Reply to Thread
Results 1 to 7 of 7

Thread: using two scripts in one page

  1. #1
    Junior Member weremoose's Avatar
    Join Date
    Apr 2008
    Location
    Greece
    Posts
    19

    using two scripts in one page

    Helo, I am having some problems building a page.

    I found a nice script that I can use to have the same effect of the dock of macs. It works great. The problem is that the width of the images I use is bigger than that of the screen. As a result I get an annoying horizontal scroll bar at the bottom.

    So I tried to use another script that will scroll automatically left and right when I hover the edges of the screen. I had no luck, it seems that the two scripts cannot work together... I don't know javascript, i've just used some scripts two or three times, so I cant imagine what could be wrong. I just need to do this.
    I can leave it with the scroll bar, but if you have any suggestions... all welcome...


  2. #2
    Netvibes is an Addiction™ Toon's Avatar
    Join Date
    Jan 2007
    Location
    Sheffield, UK
    Posts
    23,613
    Blog Entries
    12
    What scripts are they prototype.js clashes with alot of other scripts

  3. #3
    Junior Member weremoose's Avatar
    Join Date
    Apr 2008
    Location
    Greece
    Posts
    19
    I don't fully understand your question, but the dock uses the jquery library and the other uses mootools, I don't know if this helps...

  4. #4
    Netvibes is an Addiction™ Toon's Avatar
    Join Date
    Jan 2007
    Location
    Sheffield, UK
    Posts
    23,613
    Blog Entries
    12
    Do you know what elements of mootools and jquery? As in when you select your elements in mootools which did you check

  5. #5
    Junior Member weremoose's Avatar
    Join Date
    Apr 2008
    Location
    Greece
    Posts
    19
    well I didn't select any elements, or at least that's what I think...

    the dock script links to a jquery file with lots of code I don't understand
    and then there is this:



    the other script links to a similar file and I use this on my page:





    ...I feel a little stupid but I hope I will learn to write code on my own one day...

  6. #6
    Netvibes is an Addiction™ Toon's Avatar
    Join Date
    Jan 2007
    Location
    Sheffield, UK
    Posts
    23,613
    Blog Entries
    12
    I would suggest using a complete mootools solution, try some of the menus here...

    Nice List of Open Source Fish Eye Menu | Web Resources | WebAppers

    There are some mootools ones, I think sometimes the jquey scripts and mootools scripts clash to do with the way they are stacked, especially if they both have an onload function working at the same time.

    This is not gospel just my personal opinion

  7. #7
    Experienced Member tr0y's Avatar
    Join Date
    Jul 2008
    Location
    Seattle, Wa
    Posts
    181
    I have also experienced clashes with jquery and mootools, one problem is that they both use "$" is two very different ways. Mootools only lets a single element selector within $, asking you to create an array in a different way, whereas jquery will accept a single element or an array with $. i would totally suggest mootools, but its my drug of choice at the moment, so maybe you shouldn't just take an addicts word

+ Reply to Thread

LinkBacks (?)


Similar Threads

  1. 28 AJAX Scripts for Designers
    By Graphic Design Links in forum Graphic Design Links
    Replies: 0
    Last Post: 28-05-2008, 08:00 AM
  2. Image Hosting Scripts
    By dannynosleeves in forum General Web Design Forum
    Replies: 1
    Last Post: 17-05-2008, 05:28 AM
  3. ...what about scripts?
    By gabrielhml in forum Graphic Design and Web Design Help
    Replies: 5
    Last Post: 04-04-2008, 08:31 AM
  4. Replies: 6
    Last Post: 14-03-2008, 02:44 AM
  5. wordpress scripts & beef
    By PolarBear in forum General Web Design Forum
    Replies: 3
    Last Post: 22-09-2007, 02:53 PM

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


The Graphics Forum Web Design Stuff Free Decent Downloads Free Quality Wallpapers Graphics Forum Free Vista Themes
The Top The Best Images Tech Talk 247 Logo Design - $149 Affordable Stock Vector Illustrations Creativecurio - Design Blog Graphic Design Advertising

Check the forum often for the latest design announcements. Everything from graphic design and web design, to films and music. Estetica is a great place for people to get together and help each other out.



Web Hosting - UK Web Hosting services for business or personal website hosting needs.

Dedicated Servers - A full range of Managed Dedicated Server solutions suitable for all your requirements.

Graphic Design Blog | Web Design Forum | Graphic Design and Print Forum | Graphic Design Links | Advertise On This Site

Web Design UK | Vision.To Design | Leaflet Printing | Estetica Design Forum's Privacy Policy

Flyer Printing | Photography Blog | Design Forum Links | Logo Design | Graphic Design Social Network | Logo Design

Graphic Design Tutorials | Logo Designer | UK Logo Design Studio | Land for sale | Vector Art Blog | Leaflet Printing

Free Web Hosting | Custom Logo Design - $149 Only | Affordable Print Design Templates | Small Business Logo Design | Company Logo Design

Logo Design Service | Logo Design Firm | Logo Design Reseller | Custom Logo Design | Letterhead Printing | Flyer Printing | Business Card Printing

Printing | Leaflet Printing | Online Backup | T-Shirt Printing | Personalised Mugs | Canvas Printing | Free Web Hosting Comparison Site