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, 11:34 PM
Post #2


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

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



QUOTE([2)
Nekked,Apr 29 2004, 5:12 PM] um.. thats what that code already does.

just replace the image sources with your own images:

CODE
<!-- begin code provided by createblog.com -->
//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";


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

eh. i wish it were that easy.

actually, all that code does is check whether you're online or not, then puts the corresponding picture up. I have the code at the bottom of my own xanga - http://www.xanga.com/fireshrieker and it's nothing but a simple picture




EDIT- darn. i was saving that 1000 post for something better. oh well.
 

Posts in this topic


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