• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

No cursor in jscript

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    No cursor in jscript

    Thought this would be dead easy but darned if can find any solutions on net that aren't complicated, with loads of script, activexs etc. I just want to completely remove the cursor over an image in jscript. "none" doesn't work.

    Cheers for brilliant ideas.
    Last edited by xoggoth; 5 November 2009, 18:05.
    bloggoth

    If everything isn't black and white, I say, 'Why the hell not?'
    John Wayne (My guru, not to be confused with my beloved prophet Jeremy Clarkson)

    #2
    Try this maybe it will help.

    http://www.webtoolkit.info/javascrip...om-cursor.html

    Comment


      #3
      Cheers aTw but that was one of the very complicated scripts I had in mind. Seems odd there is no direct method like "none" or null.

      Managed to do it with a simple custom cursor that has nothing in it, unless anyone has a more direct method.
      Last edited by xoggoth; 5 November 2009, 18:59.
      bloggoth

      If everything isn't black and white, I say, 'Why the hell not?'
      John Wayne (My guru, not to be confused with my beloved prophet Jeremy Clarkson)

      Comment


        #4
        CSS:

        <style type="text/css">
        <!--
        .cursor { cursor: none}
        -->
        </style>

        Attach it to the OnClick Event:

        OnMouseOver="this.className='cursor';"
        Last edited by FiveTimes; 6 November 2009, 08:20.

        Comment


          #5
          Cheers, FiveTimes but that isn't working on mine either.
          bloggoth

          If everything isn't black and white, I say, 'Why the hell not?'
          John Wayne (My guru, not to be confused with my beloved prophet Jeremy Clarkson)

          Comment


            #6
            how about using the swfobject ?

            Comment


              #7
              I got this to work - sort of - in a couple of the modern browsers but it is horrible and not sure how it's working.

              FiveTimes solution would work in FF3 but not IE7 so I defined a custom cursor . This didn't work for me in FF3 as I suspect you need to give the full http path to the file - you could make a tiny transparent gif.
              Don't know how this will pan out in other browsers - not well would be my guess. Try to make the custom cursor thingy work.

              <html>
              <head>
              <style type="text/css">
              .nocursor { cursor: none}
              .nocursor { cursor: url(Windows/WEB/ieupdate.ico)}

              </style>
              </head>
              <body>

              <img src="xoggoth.jpg" class="nocursor" />


              </body>

              </html>

              Edit: should have used IE conditional comments like

              <style type="text/css">
              .nocursor { cursor: none}


              </style>

              <!--[if IE]>
              <style type="text/css">
              .nocursor { cursor: url(Windows/WEB/ieupdate.ico)}
              </style>
              <![endif]-->
              Last edited by Zippy; 6 November 2009, 11:36. Reason: additional info
              +50 Xeno Geek Points
              Come back Toolpusher, scotspine, Voodooflux. Pogle
              As for the rest of you - DILLIGAF

              Purveyor of fine quality smut since 2005

              CUK Olympic University Challenge Champions 2010/2012

              Comment


                #8
                Is that some poor man's attemt at DRM by any chance, to prevent 'stealing' those images?
                If that's the case, good luck.

                Comment


                  #9
                  Ta for furher answers. Think the custom cursor is the easiest, works in IE anyway, not tried adapting to others yet.
                  bloggoth

                  If everything isn't black and white, I say, 'Why the hell not?'
                  John Wayne (My guru, not to be confused with my beloved prophet Jeremy Clarkson)

                  Comment

                  Working...
                  X