Log In · Register

 
Picture Links in Javascript
Fireshrieker
post Apr 28 2004, 10:10 PM
Post #1


Feh... I want ramen!!
*****

Group: Member
Posts: 928
Joined: Feb 2004
Member No: 3,203



Does anyone know how to/if you can link a picture to a URL in javascript? I mean like using the image as a link. I want to try this code:

CODE
<!-- begin code provided by createblog.com -->
<!--http://www.xanga.com/anti_fukin_social-->
<script language="Javascript">
//paste in custom header only

//your screen name below
var mysn="frozenshadowfox";

//the message before your AIM Status
var themsg="I am currently";

//picture to show when you are online
var onlinepic="http://www.aimfilez.com/online.gif";

//picture to show when you are offline
var offlinepic="http://www.aimfilez.com/offline.gif";

//no need to edit here
document.write(themsg + " <IMG SRC=http://big.oscar.aol.com/" + mysn + "?on_url=" + onlinepic + "&off_url=" + offlinepic + ">.");
</script>

<!-- end code provided by createblog.com -->


and have the pictures as links to IM me.

can anyone help?
 
 
Start new topic
Replies
Fireshrieker
post Apr 29 2004, 02:54 PM
Post #2


Feh... I want ramen!!
*****

Group: Member
Posts: 928
Joined: Feb 2004
Member No: 3,203



QUOTE(LatinaLady96 @ Apr 29 2004, 3:44 PM)
are you saying to change the pic just replace the ones that are in the code and it should work with the links

um.. i'm not sure i get your wording.

anyway, for those of you who are confused- i mean, to have pictures in the javascript that when you click on them, they send you to a URL (the same as a picture link, but in javascript)
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: