Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2007
    Posts
    111
    Plugin Contributions
    0

    Default javascript image syntax

    I've successfully installed a jscript, however I cannot get the image to work. I need the syntax for:

    var trailimage=["star.gif", 100, 99] //image path, plus width and heightvar offsetfrommouse=[10,-20]

    I've tried:

    var trailimage=["includes/temp/jane/images/star.gif", 100, 99] //image path, plus width and heightvar offsetfrommouse=[10,-20]

    I've tried:

    var trailimage=["/includes/temp/jane/images/star.gif", 100, 99] //image path, plus width and heightvar offsetfrommouse=[10,-20]

  2. #2
    Join Date
    Oct 2007
    Posts
    111
    Plugin Contributions
    0

    Default Re: javascript image syntax

    nevermind I got it. as usual i was overcomplicating

    it was simply

    /images/star.gif !!


 

 

Similar Threads

  1. conflicting javascript image & additional image viewing. Help please?
    By gone_surfen in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 28 Jul 2010, 10:47 AM
  2. Crafty Syntax SSL image not showing
    By covone in forum General Questions
    Replies: 3
    Last Post: 14 May 2009, 07:01 PM
  3. SQL Syntax error: check for right syntax to use near '000000
    By gabyone in forum General Questions
    Replies: 2
    Last Post: 9 Feb 2008, 08:23 PM
  4. Image Pop Up Javascript?
    By brotherhud in forum General Questions
    Replies: 3
    Last Post: 3 Jan 2007, 10:35 PM
  5. [DONE 1.3.5] Fractional Image Sizes - syntax error
    By Brian the Brain in forum Bug Reports
    Replies: 3
    Last Post: 23 Jul 2006, 03:16 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg