Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Old 05-07-2004, 08:22 PM javascript help
binaryking's Avatar
Average Talker

Posts: 16
Trades: 0
hello all,
i need to write a client side javascript code so when user clicks on a picture, that pictures disappears and a text appears instead.
Can anyone tell me how can this be done in javascript?

thanks
binaryking is offline
Reply With Quote
View Public Profile Visit binaryking's homepage!
 
 
Register now for full access!
Old 05-10-2004, 11:23 AM
steveharro's Avatar
Extreme Talker

Posts: 172
Trades: 0
Have a look here there may be something you can use Scripts
Regards Steveharro Best Download Sites
steveharro is offline
Reply With Quote
View Public Profile
 
Old 05-11-2004, 02:44 PM
Skilled Talker

Posts: 65
Trades: 0
I'm not quite sure what you are trying to do with it.

Code:
<html>
<script>
function showtext(Text)
{
document.write(Text);
}
</script>
<body>
<img src="yourimage.jpg" onclick="showtext('<html><body>new text goes here<br>and can be formatted<b>etc.</b><br><br>end.');">
</body>
</html>
if you replace yourimage.jpg it will show a text if you click that image... but why can't you just link the description? I don't quite get it.

if you want to go the hard way, you can use css opacity to make the text show up - but this will require some more work
__________________

Please login or register to view this content. Registration is FREE
mxlabs is offline
Reply With Quote
View Public Profile Visit mxlabs's homepage!
 
Reply     « Reply to javascript help
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.19356 seconds with 12 queries