SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Jan 2004
    Location
    Switzerland
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    xSlideTo with Mozilla 1.5

    Hi,

    To get into the X-files, i tried to do a really simple example:

    This is the anchor tag:

    a href="" onmouseover="JavaScriptSlideTo(ContentImageLeftTop,50,50,2000)">Poops</a>

    It works on an IE, the layer moves smoothly to the new position. Unfortunately Mozilla 1.5 does nothing at all.

    I included the x.js only.

    Any idea?


    cheers

  2. #2
    I'll take mine raw silver trophy MikeFoster's Avatar
    Join Date
    Dec 2002
    Location
    Alabama, USA
    Posts
    2,560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi swissmerlin, thanks for using X

    and Welcome to SitePoint Forums!

    It's hard to say without seeing more of the page, but here's a thought:

    Is "ContentImageLeftTop" a global variable containing a reference to an Element? Or is it an ID? If it is an ID then use: onmouseover="xSlideTo('ContentImageLeftTop',50,50,2000)". In either case, don't use the "javascript:" protocol in the onmouseover attribute - that is only for the href attribute.

    Edit:

    Note that the vB forum software puts the underscores in the word "javascript" - for security reasons.


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
  •