Author Topic: Title in Link problems  (Read 1400 times)

Offline lindhsky

  • Level 6
  • *
  • Posts: 26
  • Reputation: +0/-0
    • View Profile
Title in Link problems
« on: May 31, 2010, 12:00:58 AM »
Hello!

I have a problem but I am not sure if it is just my properties that are wrong in my Internet Explorer 8 or if I do something wrong when I code.

The problem is that I want text to appear when people have the mouse over the link but it is not working in Internet Explorer 8, while it works in Mozilla. It also works when I am using images.

Here's an example of code that doesn't work in Internet Explorer but works in Mozilla.

echo "<a href='navigation.php' title = 'Used for expeditions and daily events. Also used in ship versus ship combat.'><b> [Navigation] </b></a>";

Am I doing something wrong? I have noticed that it works in my Internet Explorer 8 browser when they have the same thing and when I checked the html-code on those pages they did it the way I have above unless I am blind. :)

Thanks in advance!

Offline Mufasa

  • Game Owner
  • Level 18
  • *
  • Posts: 189
  • Reputation: +3/-0
  • Maniac Developer
    • View Profile
Re: Title in Link problems
« Reply #1 on: May 31, 2010, 01:07:09 PM »
Shouldn't be any different... One thing to double check is that you escape single or double quotes in your string (depending on which you use in your HTML)

Offline lindhsky

  • Level 6
  • *
  • Posts: 26
  • Reputation: +0/-0
    • View Profile
Re: Title in Link problems
« Reply #2 on: June 01, 2010, 09:06:04 AM »
I tried that now without result. It worked on the computers at work with Internet Explorer, so I guess it's something with my Internet Explorer.

Thanks

Offline Mufasa

  • Game Owner
  • Level 18
  • *
  • Posts: 189
  • Reputation: +3/-0
  • Maniac Developer
    • View Profile
Re: Title in Link problems
« Reply #3 on: June 01, 2010, 09:23:48 AM »
it's probably unlikely that your work computers have IE8 though, so perhaps it is something with the string you're trying and IE8. Have a link to an example?

Offline Sinzygy

  • Level 28
  • **
  • Posts: 420
  • Reputation: +11/-0
    • View Profile
Re: Title in Link problems
« Reply #4 on: June 01, 2010, 11:02:20 AM »
why not use a js-tooltip plugin?
Customizable and shows up more reliable than title tags.
http://docs.jquery.com/Plugins/Tooltip

Offline Andy

  • Level 7
  • *
  • Posts: 31
  • Reputation: +0/-1
    • View Profile
Re: Title in Link problems
« Reply #5 on: June 08, 2010, 09:33:53 AM »
Agree with Sinzygy, use a js-tool plugin!

Offline raestlyn

  • Level 29
  • **
  • Posts: 464
  • Reputation: +9/-5
    • View Profile
Re: Title in Link problems
« Reply #6 on: June 08, 2010, 01:51:51 PM »
Why mess up with js if that will be the only thing he needs it for? How about purely CSS3 tooltip? Just change the
Code: [Select]
div:before{
    content:attr(title);
    display:none;
}
to
Code: [Select]
div:before{
    content:attr(tip);
    display:none;
}
and
Code: [Select]
<div title="Tooltip text for first div"></div>to
Code: [Select]
<div tip="Tooltip text for first div"></div>
That way if you leave your mouse over the div you won't see the title.


I can send you pics of my cocks if you want reference.


Offline Mufasa

  • Game Owner
  • Level 18
  • *
  • Posts: 189
  • Reputation: +3/-0
  • Maniac Developer
    • View Profile
Re: Title in Link problems
« Reply #7 on: June 08, 2010, 01:59:39 PM »
Why mess up with js if that will be the only thing he needs it for? How about purely CSS3 tooltip? Just change the
Code: [Select]
div:before{
    content:attr(title);
    display:none;
}
to
Code: [Select]
div:before{
    content:attr(tip);
    display:none;
}
and
Code: [Select]
<div title="Tooltip text for first div"></div>to
Code: [Select]
<div tip="Tooltip text for first div"></div>
That way if you leave your mouse over the div you won't see the title.

while cool, I'd imagine supported browsers will be minimal

Offline raestlyn

  • Level 29
  • **
  • Posts: 464
  • Reputation: +9/-5
    • View Profile
Re: Title in Link problems
« Reply #8 on: June 08, 2010, 02:51:57 PM »
while cool, I'd imagine supported browsers will be minimal
Yeah, it doesn't work on < IE7 as it should be. ;)

« Last Edit: June 08, 2010, 02:55:20 PM by raestlyn »


I can send you pics of my cocks if you want reference.


Offline Barrikor

  • Level 21
  • *
  • Posts: 248
  • Reputation: +3/-0
    • View Profile
Re: Title in Link problems
« Reply #9 on: June 08, 2010, 03:01:39 PM »
while cool, I'd imagine supported browsers will be minimal
Yeah, it doesn't work on < IE7 as it should be. ;)


But nothing works < IE7 as it should anyway :)
Projects: Pith Framework (at 0.5), CactusGUI (at 0.3)

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal