|
|
#1 |
|
Hiding URL title="text" on mouse over?
Ok, strange conundrum. I am using Lightbox to the point where Ive hidden alot of html within the "title" variable of the the <a> link tag.
So, whenever you hover over the image you would click to bring up a lightbox, you see the title text...which in my case happens to be a few hundred characters of html...and not, say, "Image of a Frog" as it would normally be. How do I either hide or change what is displayed on mouseover? Java, css, html whatever, something simple though, would be nice. I may have put myself into a corner by doing what ive done to the lightbox html, but it works otherwise just fine.
__________________
The real problem is not whether machines think but whether men do. - B. F. Skinner Like Polaroid? |
|
|
|
0
|
|
|
#2 |
|
__________________
Those who fail to learn history are doomed to repeat it; those who fail to learn history correctly... why, they are simply doomed. |
|
|
|
0
|
|
|
#3 |
|
Are you talking about the yellow box that pops up when you hover over the image? That's not from Lightbox. The best thing to do would be to remove all that HTML from the title tag, it's not valid to be there anyways if it's HTML.
|
|
|
|
0
|
|
|
#4 |
|
I realize that, but without getting into hardcore lightbox coding, its the best way to make my popup work. Validity means nothing to me on this website.
__________________
The real problem is not whether machines think but whether men do. - B. F. Skinner Like Polaroid? |
|
|
|
0
|
|
|
#5 |
|
Can you elaborate on what you're wanting, because it's a bit confusing? Some examples and maybe a link to the page would be beneficial.
|
|
|
|
0
|
|
|
#6 | |
|
Quote:
As you can see I have hidden alot of this html inside the title of this particular link. The rel="lightbox" makes it so when you click this link (an image as you can see by the end of the code) it pops up a "lightbox" window. Typically this only allowed you to put a caption using the title attribute. BUt I found you can "hide" html code inside the title tag and through CSS, format a nice popup window. Thats why there are so many odd tag combinations, classes wouldnt work. Its a not a DIV popup by any means, and all the solutions I found were far to complex for my simple needs. in any case, because the title attribute contains all the code above, when you hove over the image/link, the little yellow box in FF and IE show the title text...which is html gobbly gook. Not a huge deal, but kinda distracting when IE6 makes the entire title show and its long.
__________________
The real problem is not whether machines think but whether men do. - B. F. Skinner Like Polaroid? |
||
|
|
0
|
|
|
#7 |
|
I don't think there is any way to hide the content of the title tag for all browsers. The only way would be to leave it empty...
Even if you write a JS (and I can't think of any kind of script that would remove the content of the title tag without breaking your code), that would have to run after the page loaded. That would considerably slow down your page loading time. Actually, the best way would probably have been to write a JS that write your lightbox code on the fly (within the title tag or not) when you click the href... Something like: <a href="javascript:myLightboxScript(variable1, variable2, variable3);">Some Link</a>
__________________
..:.::.:.:.::..:.: Oh, I get it. It's very clever :.:.::.:.:.::.:..:.::..:.::.:..:.::.:.::.:.::.. DO NOT OPERATE YOUR COMPUTER UNDER THE INFLUENCE! Last edited by morespce54; Dec 9, 2008 at 04:28 PM. |
|
|
|
0
|
|
|
#8 |
|
It would take a bit of a hack to do what you want with Lightbox. Mt recommendation is to use one of the many Lightbox clones. Highslide in particular can do what you want with needing a hack.
|
|
|
|
0
|
|
|
#9 |
|
That was one of many Lightbox clones I was looking at. But, like most, it was far too much for my needs.
I just want a popup with html in it. Thats it. Seems like no one wrote something that simple, instead they give you everything.
__________________
The real problem is not whether machines think but whether men do. - B. F. Skinner Like Polaroid? |
|
|
|
0
|
|
|
#10 |
|
Just because it provides more, doesn't mean you have to use it all. The setup is very similar to LightBox, so isn't going to be anymore time consuming and will leave you with a better result than trying to find a hack.
|
|
|
|
0
|
|
|
#11 | |
|
Quote:
__________________
Those who fail to learn history are doomed to repeat it; those who fail to learn history correctly... why, they are simply doomed. |
||
|
|
0
|
|
|
#12 |
|
__________________
The real problem is not whether machines think but whether men do. - B. F. Skinner Like Polaroid? |
|
|
|
0
|
|
|
#13 |
|
As a plan "B" using your original title with the HTML (if the tooltip approach fails for you), have you tried this simple approach to null the title?
[HTML]<p><a onMouseOver="javascript: this.title='';" href="../images/examples/spectra.jpg" rel="lightbox" title="...your original HTML stuff...">test</a></p> [/HTML] Tested, works. Add the OnMouseOver attribute and value to your anchor tag. Javascript rocks, eh? "this" represents the anchor tag as a node, allowing you access to the title attribute, set it to nothing or whatever you want. Note, the tooltip approach is a lot nicer looking anyway! I'd go that route even if you got this to work!
__________________
Jim Goldbloom Sr. Web Developer, owner GoldTechPro, LLC http://www.GoldTechPro.com
Last edited by SrWebDeveloper; Dec 11, 2008 at 07:48 AM. Reason: fixed a typo |
|
|
|
0
|
|
|
#14 |
|
wztooltip saved the day.
wish it was a TINY bit more configurable (like a border around the title would be nice, instead it just uses a background color and covers the border) But, after a bit or moving my horrible hack code, its all good now. Very happy with it. THANKS! and thanks for the tip on hiding the title, that is useful on other pages.
__________________
The real problem is not whether machines think but whether men do. - B. F. Skinner Like Polaroid? |
|
|
|
0
|
|
|
#15 | |
|
Quote:
Glad to hear the OP has a working solution. |
||
|
|
0
|
|
|
#16 |
|
@angelwatt:
If the title value had been lost then a copy of the attribute value would be needed by adjusting Lightbox code. The whole concept of using HTML in the title is just plain wrong anyway. So if it ended up that way, I feel it's a waste of time to re-code Lightbox to mirror the value, might as well use that time and energy and do the tooltip. That occured, and it's the best thing overall - not only does it look better, but no standards are broken. That's a winner for the OP. The OP took my advice as intended, just a cool HTML trick for the future. -jim
__________________
Jim Goldbloom Sr. Web Developer, owner GoldTechPro, LLC http://www.GoldTechPro.com
|
|
|
|
0
|
|
|
#17 |
|
Im using the WZtooltips allover this new section of my website.
I just wish there was some sort of option to make it grey out the background like lightbox does. Some of the "tooltips" are more like popup divs.
__________________
The real problem is not whether machines think but whether men do. - B. F. Skinner Like Polaroid? |
|
|
|
0
|
|
|
#18 | |
|
Help needed Sdashiki
Dear Sdashiki, I am facing the exact problem with lightbox and can't figure out what to do with the title on mouseover. My description of the title is in HTML and thus I don't want it to show in mouseover and only in the lightbox. What did you do to solve your problem. What did you change in the js file or HTML or CSS. I am really lost and need your help desperately.
Regards Alk8611 Quote:
|
||
|
|
0
|
|
|
#19 | |
|
Quote:
|
||
|
|
0
|
|
|
#20 |
|
Dono if anyone is still struggling to find a solution to this, thought i might give it a try.
If what you want to do is hide the title attribute when you mouseover a tumbnail but still keep the title so it appears as a discription for the fullsize lightbox image then try this: instead of using the title="description" in your link, try calling the title onclick. example: if you have <a title="Discription" href="fullsizeimage.jpg"></a> replace the title="Description" with onclick="javascript: this.title='Description' ;" onMouseOver="javascript: this.title=' ' ;" so it will look something like this: <a onclick="javascript: this.title='Description' ;" onMouseOver="javascript: this.title=' ' ;" href="fullsizeimage.jpg"></a> this will call the title only when the link is clicked and not show the title when you hover over it again. Hope this helps! |
|
|
|
0
|
|
|
#21 |
|
using description for title
To renier
I see this thread is kind of old, hope you are still checking it. I tried your solution and it worked as far as the code not showing up with a mouseover on the thumbnail, but my images are in a gallery and when I clicked the next arrow from the large image, when the next image loaded it didn't show the title/description at all. It only shows it if you click on the thumbnail. I should mention I'm using the fancybox version of lightbox. |
|
|
|
0
|
![]() |
|
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| thread | Thread Starter | Forum | Replies | Last Post |
| Macbook pro mouse stuck/will start marking text whenever i move my mouse over it. | Crigget | MacBook Pro | 1 | Sep 26, 2010 07:11 AM |
| Annotations that show/hide on mouse over - app? | cheapnis | Design and Graphics | 4 | Aug 9, 2010 12:58 PM |
| script to dim a div's content on navbar mouse over? | sk3pt1c | Web Design and Development | 4 | Feb 4, 2009 04:11 PM |
| iTunes Stuttering on Mouse Over | TannerLD | Mac Applications and Mac App Store | 2 | Oct 31, 2008 11:41 PM |
| Help! How to make a mouse over on an image map | mariahlullaby | Web Design and Development (archive) | 0 | Sep 18, 2005 02:56 PM |
All times are GMT -5. The time now is 04:46 PM.









Jim Goldbloom
Linear Mode

