• 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!

HTML image map when border=0 isn't darn it.

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

    HTML image map when border=0 isn't darn it.

    Using an HTML simple polygon image map with border=0 on image so the map area should not be displayed. It isn't to start with, however, if I click on the map area and then return to page using the back button the area is outlined and does not go away with refresh.

    Any simpler ways round this than a) using Flash or b) mapping round the object much more closely so the outline is less obvious? Both seem a bit of a hassle for what should really be a dead simple page.

    Ta for any tips.

    #2
    Is it online to see?

    Comment


      #3
      yeah, during click behaviour is undefined, so normally browsers outline it and keep it on to allow easy seeing what was clicked - feature so to speak. In your case they might be using outilne to show it was clicked, history mode so to speak, even though it sounds a bit weird.

      so, its xoggoth upon us with his typical approach which we in Russia refer to as "doing it through the arse" - you are picking some completely alien method to achieve goals that are best achieved with something else - you'd be welcome member in my employer's web team (even though they improved since I started)

      anyhow, I suggest to rethink what you doing, if its really a simple page then you should be able to avoid using image maps in the first place.

      Comment


        #4
        Imagemaps are a completely alien method of defining a hotspot on an image aTW? I thought that's exactly what they were for. My book does say they are a bit outdated and like you, hints cryptically at better methods but does not say what they are. Anyway, open to any suggestions of an easier or better way of defining an irregular button area on a background image.

        No, not on website R, I am doing lesson material to run in a VB browser.

        PS It's a treasure chest that opens when you click on it and daggers and stuff as in "Is this a.." etc pop out.

        Comment


          #5
          xoggoth - its entirely possible that in this case you picked correct way of doing it, however knowing you this is pretty rare

          i am pleased to hear however that you use standard techonologies (HTML) in your VB app - this is definately the right way!

          anyhow, I tried image map here - www.ihip.com/
          and I get the same outline when I go back to page, so I guess its not just you (I use IE6). It appears that clicking anywhere else would eliminate that outline - could be kind of "focus"? How about you do some javascript on page which would auto run after body loaded (OnLoad event) and give focus to some button or something else?

          Comment


            #6
            Ta a. Not tried changing focus, have a go later. At mo weather is too nice so mostly outside doing some more artwork. Also wonder whether there was mileage in your previous comment re history - perhaps if I deleted it. Funny nobody else on internet seems to have found this a problem that I can find.

            Comment


              #7
              You might want to try Swish which is basically Flash but easier. This way you can just drop images onto the movie and attach events to them.

              Comment


                #8
                using Flash is a dependency which you dont want to introduce unless you plan to rely on Flash for significant chunk of your app _and_ there is absolutely no other way, since you do it in VB on client side you might as well do ActivEx (yuck!)

                changing focus with javascript should help, other people never noticed that because they did not have time to look at that level of detail

                Comment


                  #9
                  Thanks for suggestion R. though I came to atW's conclusion the other day when I suddenly found that none of my Flash animations were working for some unknown reason. I had to download the player off the net again. The more things you introduce into the equation the more can go wrong.

                  Ok for stuff aimed at techies who can fix it, but stuff for schools needs to be fairly foolproof, most teachers are not very technical. My missus was IT coordinator and seeing her struggle just to copy a few files in Explorer is hilarious. (I do not dare laugh of course). She still saves things on floppy discs

                  Comment


                    #10
                    < M A P NAME="map1" >
                    < A R E A S H A P E =RECT COORDS=" 11,26, 27, 35" HREF="file.htm#ChapTocTop" on mouse over="window.status='File Menu'; return true" on mouse out="window.status='EPS Range'; return true">
                    < A R E A S H A P E =RECT COORDS=" 40,26, 58, 35" HREF="edit.htm#ChapTocTop" on mouse over="window.status='Edit Menu'; return true" on mouse out="window.status='EPS Range'; return true" >
                    < / M A P >

                    < T A B L E WIDTH="100%" >
                    < T R >
                    < T D width="43%">
                    <I M G U S E M A P= "#map1"
                    SRC="main.gif"
                    ALT="...loading image, please wait..."
                    HEIGHT=206 WIDTH=350 ALIGN=BOTTOM border=0>
                    </TD>

                    Is the above what you are trying ...

                    Comment

                    Working...
                    X