SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    Obsessive designer Infizi's Avatar
    Join Date
    May 2004
    Location
    North Pole
    Posts
    450
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help with Nifty Cube. Why wont it work?

    Hey guys,
    I am using niftycube, the downloaded files are in :

    link removed

    They all work, but when i try to use the script on my own pages it doesn't work??

    link removed

    Has anyone had this problem before? Or does anyone know what i have done wrong as i have checked my script against the supplied examples and i cannot see what i have done wrong?!?!

    Any Help is appreciated
    Last edited by Infizi; Apr 7, 2007 at 13:59. Reason: links removed
    New Design - PHP Slowly flowing in!

    Infizi Studio's

  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 Infizi,

    You're specifying the wrong location for the js file:
    Code:
    <script type="text/javascript" src="../js/niftycube.js"></script>
    It should be like this:
    Code:
    <script type="text/javascript" src="/js/niftycube.js"></script>

  3. #3
    Obsessive designer Infizi's Avatar
    Join Date
    May 2004
    Location
    North Pole
    Posts
    450
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks,

    I changed that (IE didn't report it as an error?) but it still doesn't work
    New Design - PHP Slowly flowing in!

    Infizi Studio's

  4. #4
    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)
    Ah Ha! It can't find the file "niftyCorners.css". Refer to the function "AddCss" in the niftycube.js file.

  5. #5
    Obsessive designer Infizi's Avatar
    Join Date
    May 2004
    Location
    North Pole
    Posts
    450
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    a ha! didnt realise that path had to be relative to the document not the JS.

    Fixed now, many thanks.
    New Design - PHP Slowly flowing in!

    Infizi Studio's


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
  •