Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Oct 2009
    Thanked 0 Times in 0 Posts

    quick easy newbie question for you guys! problem with making an external js file

    Hi everyone

    Im new at this forum I was directed here by a member of a forum I posted my question in, who said people here should be able to help me.

    I have a piece of jquery code from a plugin for a fade-in-out type slideshow, currently appearing in my html file. I want to extract this and put it in a seperate js file where all other jquery is, but I have not been successfull - whenever i try, it just doesnt show up. I am quite new to jquery, and would really appreciate some help.

    The original question and the answer i received so far is here: http://www.webdeveloper.com/forum/sh...88#post1038588

    Hope someone can help me!


  2. #2
    New Coder
    Join Date
    Aug 2009
    London, England
    Thanked 3 Times in 3 Posts
    this script has a window.onload = function which is likely to **** any jquery $(document).ready etc functionality defined previously. it's also not using jquery at all so its not the best choice here (even though it's coded well enough and as a class..)

    anyway, try to remove from the js:

    window.onload = fadeshow;

    and repace with:
    PHP Code:
    $(document).ready(function() {
    if you have an existing such function, just add fadeshow there.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts