Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

GIF/PNG image rollover + href

  • 13-09-2008 8:51pm
    #1
    Registered Users, Registered Users 2 Posts: 8,070 ✭✭✭


    Hey Guys,
    can someone help me out with this
    have few blob spots, they are gif images, placed around the page using css, position attribute in the <img.. tag.

    Obviously if i put a <a href before it, it read the whole dimension of the image and the hand icon appears way before the actual blob.

    Do i use image maps? any examples? any easier way ? could i use onclick?

    Thanks


Comments

  • Registered Users, Registered Users 2 Posts: 1,784 ✭✭✭im...LOST


    You placed it using a position attribute inside the <img> tag? Why don't you try to position it using CSS and then you can wrap the <div> tag with the <href> tag.

    Mebby.. :P


  • Registered Users, Registered Users 2 Posts: 8,070 ✭✭✭Placebo


    just done it quickly, i am using css, eg <img src="a.gif" style="etc etc" />

    anyway in your case div, even if transparent would be clickable outside the dimensions of the coloured parts. Because its a square.


  • Closed Accounts Posts: 7,145 ✭✭✭DonkeyStyle \o/


    an image map sounds like the way to go alright


  • Registered Users, Registered Users 2 Posts: 8,070 ✭✭✭Placebo


    thanks
    wasted over a day with different techniques , using image map now but rollovers do not work with IE can someone please point me to a javascript script that works with IE

    current shape of code:
    <area shape="poly" alt="about" coords="1,2,3" href="about.html" 
    
    onmouseout="X" 
    onmouseover="X" />
    


  • Registered Users, Registered Users 2 Posts: 35,524 ✭✭✭✭Gordon


    I don't really understand what you are doing, can you define the a link as display:block and define the width/height/bg-image position of the a link? If not then do you have more info?


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 15,065 ✭✭✭✭Malice


    I'm not sure exactly what the problem you're having actually is so this tutorial might not be any help but I implemented a page design for a client recently using it as a reference.

    Basically the client had a diagram on the page where they only wanted part of it clickable. Happily the clickable regions were all rectangular so all I had to do was create a set of rollover images that were positioned onto a background image.


  • Registered Users, Registered Users 2 Posts: 8,070 ✭✭✭Placebo


    HERE
    doesnt work with IE


  • Moderators, Computer Games Moderators Posts: 10,462 Mod ✭✭✭✭Axwell


    Works for me in IE, what version are you trying it in? Works fine for me in IE 6 and IE 7 (I assume its the roll over effect you are talking about)


  • Registered Users, Registered Users 2 Posts: 8,070 ✭✭✭Placebo


    actually, its working fine here in work, so is the lightbox
    thats very strange, i had the old one, im assuming it was 6 so i did upgrade and still wasnt working.


  • Moderators, Computer Games Moderators Posts: 10,462 Mod ✭✭✭✭Axwell


    Check your javascript settings on your machine at home, you might have javascript turned off.


  • Advertisement
Advertisement