Wrox Programmer Forums
|
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 7th, 2005, 06:46 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default show a img title onClick

is it possible to show a image title onClick?

<img src=picco.jpeg title=Picco>


www.crmpicco.co.uk
__________________
_______________________
Ayrshire Minis - a Mini E-Community
http://www.ayrshireminis.com
http://www.crmpicco.co.uk
 
Old October 7th, 2005, 07:21 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919
Default

Hii crmpicco!!

Plz try this :)
<script>
function showtitle(obj)
{
document.getElementById('myimg').title="hello";
}
function mouseout1(obj)
{
obj.title="";
}
</script>
<img id='myimg' src=myimg.jpeg onclick="showtitle(this)" onmouseout="mouseout1(this)">


Hope this will help you

Cheers :)

vinod
 
Old October 7th, 2005, 08:50 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

Thanks vinod, are you still using MSN/Windows Messenger by the way?

www.crmpicco.co.uk





Similar Threads
Thread Thread Starter Forum Replies Last Post
Img doesn't display peter2004 HTML Code Clinic 9 September 16th, 2009 08:20 PM
Online Diary Mod Show Entry Title on Calendar vgharris0 BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 3 April 1st, 2008 12:02 PM
img not refreshing austinf XSLT 1 June 13th, 2006 03:55 AM
set title but do not show onMouseOver crmpicco Javascript How-To 7 November 1st, 2005 12:26 PM
show title without mouseover object crmpicco Javascript How-To 0 October 20th, 2005 06:35 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.