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
*[2]Nekked*
post Apr 30 2004, 10:03 AM
Post #2





Guest






QUOTE(Fireshrieker @ Apr 29 2004, 11:34 PM)
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.

THATS WHY U CHANGE THE IMAGE SOURCES!!
make your own image.
upload it.
change

http://www.aimfilez.com/online.gif

http://www.aimfilez.com/offline.gif

to the urls of your own images.
oh jeez i feel an oncoming migrane..
 

Posts in this topic


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