SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Aug 2008
    Location
    sunshinecoast
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Jquery / java script - image fade ?????

    HI,
    Been struggling with this for a while.
    Just getting my head around jquery and java script.
    This is what i have been trying to acheive Jane Churchill
    Trying to work out how to get the image slider working.
    The trouble i am having is i can see how it all works but i'm just missing something.

    First question when i open the site or sites like this it seems to open fine. when i play around with these in a html editor and open them in ie the
    page stops them from running scripts or activex?????

    does jquery have to work side by side with java script..???

    Do you link to the jqury or can you put it in the css(excuse me for being ignorant about the 2)????

    Can any one point me to a site or has a way of acheiveng this or has info about how to achieve this.

    At the moment i have kidney stones and is not sure which one is more painfull. Stones or script's

    Thank you in advance for any help.

  2. #2
    SitePoint Member
    Join Date
    May 2011
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Jquery is a javascript library that that makes it easy to create wonderful web effects in just a few lines of code

    normaly in javascript u write getElementById
    in jquery u can say: $('#name id')
    u can write the same thing only with less code, JQuery does it for u.

    u have several options to implement JQuery in to your project.

    u can download JQuery download
    then u have to put it in a folder and link to it from your html file.

    the link u put it in the head section of your html
    <script type="text/javascript" src="location of the JQuery library.js"></script>
    the disadvantage is that u have to be aware that u keep the library up to date.

    the second way is to click on download button on the site.
    copy the url from your url field.
    <script type="text/javascript" src="paste the url here"></script>
    put this in the head of your html file this way u have JQuery always up to date

    u can not put jquery in your CSS stylesheet. CSS stylesheet is for your layout. learn more about css
    the difference is also visible in when u link to the files from your html file. (look at the type tag and the beginning one is script one is link)

    css
    <link type="text/css" rel="stylesheet" href="yourstyle.css">

    JQuery
    <script type="text/javascript" src="yourfile.js"></script>

    if it doesnt run in ie try this link

    hope its a bit cear now


Tags for this Thread

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
  •