We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
[ C ] get rid of text bubble when mouse over images
Topic Started: Aug 9 2012, 06:42 PM (381 Views)
tobeme
Member Avatar
Member
[ *  * ]
Board Address: http://wallacehuo.info
Board Software: Zetaboards
Description: I need a code that will get rid of text bubble that shows up when mouse over the images (html).

Thanks
Offline Profile Goto Top
 
Ferby
Member Avatar
Developer
[ *  *  *  *  * ]
Its called the title, example..
Code: HTML
 
<img src="http://z3.ifrm.com/2/101/0/p391486/logo.gif" title="Logo">


The `title` is the part you should remove so it ends up like this
Code: HTML
 
<img src="http://z3.ifrm.com/2/101/0/p391486/logo.gif">


If you can't edit that then there is a way to do it with Javascript but I'm new to Javascript so it would take me a while to even figure it out.
Edited by Ferby, Aug 9 2012, 06:58 PM.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Removes the title attribute from all images:
Code:
 
<script type="text/javascript">
$('img').removeAttr('title');
</script>
Removes the title attribute from one image:
Code:
 
<script type="text/javascript">
$('img[src*="filename.filetype"]').removeAttr('title');
</script>
Note: In XHTML, images must use the alt attribute and be closed:
Code:
 
<img src="http://z3.ifrm.com/2/101/0/p391486/logo.gif" alt="Logo" />
Offline Profile Goto Top
 
Steve
Member Avatar
patriot
[ *  *  *  *  *  *  *  *  *  * ]
Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic