Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript simple jquery script…really need help

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #26796
    gvestudios
    Member

    Hello All,

    I am trying to get this script to work on a particular page in my wordpress theme.The first jquery script works on the homepage properly but the second script does not work on the portfolio page & nothing happens.

    I have combined the scripts, separated them, used the default $() initializer but nothing seems to work for the second script.

    Jquery setup:

    Code:





    Below is the layout code the script is suppose to animate. The script is suppose to fade out the IMG and reveal the text underneath which is all positioned with css.

    PHP SNIPPET

    Here is an example of what it is suppose to achieve except instead of sliding the Image will fade out.HERE.PLEASE HELP…THX

#66817
cybershot
Participant

well i don’t know a lot about jquery, but one thing I do when the code isn’t working is use an alert box to find out if my code is working or not.

just

alert("it’s working");

throw that into your second script then load the page, if you see the alert box pop up then you know it’s reading the script, if not, then you know where the problem is.

#66824
Robin
Member

Or, if you want to do things more sophisticated, you can ad lots of

Code:
console.log(“Message here.”+variable);

to your code to debug it line by line using the Firebug plugin (console view) in Firefox.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.