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

Thread: Shake Image Script

  1. #1
    Join Date
    Jun 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Shake Image Script

    Hi,
    First i am not professional and sorry for my bad english...

    i am using Shake Image Script on a page. but the codes

    Code:
    <a class="shakeimage" onMouseover="init(this);rattleimage()" onMouseout="stop
    and onmouseout etc.. are not valid Xhtml as a result of W3...

    The Script which i used on page on this link
    http://www.dynamicdrive.com/dynamicindex4/shake.htm
    The page i am trying to make is here
    Code:
    http://www.sigmamerkezi.com.tr/test1/
    My Link is between code tags; pls copy/and paste to browser...

    My question is that, if it is possible to write codes valid W3 ?
    Or i can forget to use that script ?

  2. #2
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,920
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    Hi there conewar,

    and a warm welcome to these forums.

    Use lower case for all xhtml so...
    onmouseover and onmouseout
    Also note that...
    <script language="JavaScript1.2">
    ...is deprecated and should be changed to...
    <script type="text/javascript">
    ...for validation purposes.
    coothead

  3. #3
    Join Date
    Jun 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile

    coothead

    Thank you for your help and that was more than a help, that is a small but higly effective hint for me.

    ty again..

  4. #4
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,920
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    No problem, you're welcome.

  5. #5
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Also note that using XHTML for general use on the Web is currently a bad idea, since IE doesn't support it. Stick to HTML 4.01 Strict.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  6. #6
    Join Date
    May 2007
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Twey View Post
    Also note that using XHTML for general use on the Web is currently a bad idea, since IE doesn't support it. Stick to HTML 4.01 Strict.

    Is there a reason why you prefer strict over 'transitional;? Strict seems so rigid and inflexible but then there is much I yet have to learn.


    Thanks.

  7. #7
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    The HTML 4.01 Transitional DOCTYPE was created to maintain rough compatibility with HTML 3.2 and thus ease the transition to HTML 4. This, however, was a good ten years ago: there's no reason that anybody should still be using it or the bad coding practices it allows. XHTML 1.0 Transitional, even ignoring IE, is just as bad, since it is based on HTML 4.01 Transitional, and so, again, allows a lot of sloppy coding practices left over from HTML 3.2.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  8. #8
    Join Date
    May 2007
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you for your reply.

    I often use the W3Schools tutorials as an aid to learning scripting codes, and they have mentioned that they find the 'strict' version as too strict and therefore prefer and use the 'transitional' version.

  9. #9
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Beware W3Schools. A lot of its information is misleading or simply wrong, and some vital points are missing entirely. It's a decent reference for the experienced web developer, but take it with a pinch of salt.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  10. #10
    Join Date
    May 2007
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I find your scripting skills, as well as the others, to be phenomenol. I remember you mentioned that you self -taught yourself and primarily used online tutorials.

    How long did it take you to get to the superior level you have now?

    Are there any particular tutorial you favor or have used while learning the scripts?

    Thank you once again.

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
  •