We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
  • Pages:
  • 1
  • 2
Random Image HTML
Topic Started: Jun 10 2005, 08:23 PM (2,528 Views)
Das
Member Avatar
Smells of rich mahogany
[ *  *  *  *  *  *  * ]
Qj
June 18, 2005 05:42 AM
If you can use html in your sig, just put the code right there in your sig.
If you can't use html in your sig, you can't use it (As far as I know anyway)
(You can't use a php as an image source on any IF board, can you?)

And doesn't this fall under this verry sticky topic and the lines above all topics/topic index in this forum?? :unsure:

HNe was asking for a code that could be used any where and last I checked he was using it on his website and his forum ;)
Offline Profile Quote Post Goto Top
 
solinent
Member Avatar
Member
[ *  *  * ]
You'd have to set up application mappings for extensions with ".gif" or ".png"(i find gif works out better)

Then you'd have to do a little php magic, and you also have to have the Gd library installed into php(and if you're on an apache server, create a .htaccess document and use forcetype application/x-httpd .gif statement)

But I dont think that would be easy for you would it? :angel:
Offline Profile Quote Post Goto Top
 
Das
Member Avatar
Smells of rich mahogany
[ *  *  *  *  *  *  * ]
solinent
June 21, 2005 05:29 PM
You'd have to set up application mappings for extensions with ".gif" or ".png"(i find gif works out better)

Then you'd have to do a little php magic, and you also have to have the Gd library installed into php(and if you're on an apache server, create a .htaccess document and use forcetype application/x-httpd .gif statement)

But I dont think that would be easy for you would it? :angel:

:blink: He has already got three codes and php isn't allowed everywhere ;)
Offline Profile Quote Post Goto Top
 
Captain Kam
Custom member title
[ *  *  *  *  * ]
M'kay; Guess I didn't say this o_o'

Topic Solved, I'm using Javascript. Anybody interested in modding this code could use it.

Quote:
 
<script>var theImages = new Array()

// Please do not update this code unless you are, or have expressed permission from, Captain Kam
// Amber [REMOVED] kicks ass! <3

// The Images ^_^
theImages[0] = 'http://img170.echo.cx/img170/3411/kamsig8dh.gif' // Mirelle in Blueness with the word "TehKam"
theImages[1] = 'http://img.photobucket.com/albums/v732/Das_Ein/tehkamsiggeh.gif' // Mirelle in Pink with the word "TehKam"
theImages[2] = 'http://img262.echo.cx/img262/428/kamcopy0as.gif' // Mirelle in Devilish Red with the word "TehKam"
theImages[3] = 'http://img254.echo.cx/img254/8328/tehkam14nf.jpg' // Some evil guy in a Black Surrounding with the word "TehKam"
theImages[4] = 'http://img57.echo.cx/img57/8955/captainkam7oo.png' // White Signature with a kickass flashy Incorporative Symbol with the word "Captain Kam" beautifully placed onto it
theImages[5] = 'http://img63.echo.cx/img63/3189/essenseofcaptain7dk.png' // Essense of a Captain - Captain Kam Greenscale
theImages[6] = 'http://s1.sigamp.com/users/CaptainKam/newsig.png' // Captain Kam's SigAMP Image

var j = 0
var p = theImages.length;
var preBuffer = new Array()

for (i = 0; i < p; i++){
preBuffer = new Image()
preBuffer.src = theImages
}
var whichImage = Math.round(Math.random()*(p-1));

// Link URLs and Borders
function showImage(){
if(whichImage==0){
document.write('<a href ="http://tehkam.fatessong.com"><img src="'+theImages[whichImage]+'" border=0 width=300 height=100></a>');
}
else if(whichImage==1){
document.write('<a href ="http://tehkam.fatessong.com"><img src="'+theImages[whichImage]+'" border=0 width=366 height=108></a>');
}
else if(whichImage==2){
document.write('<a href ="http://tehkam.fatessong.com"><img src="'+theImages[whichImage]+'" border=0 width=300 height=100></a>');
}
else if(whichImage==3){
document.write('<a href ="http://tehkam.fatessong.com"><img src="'+theImages[whichImage]+'" border=0 width=360 height=130></a>');
}
else if(whichImage==4){
document.write('<a href ="http://tehkam.fatessong.com"><img src="'+theImages[whichImage]+'" border=0 width=400 height=100></a>');
}
else if(whichImage==5){
document.write('<a href ="http://tehkam.fatessong.com"><img src="'+theImages[whichImage]+'" border=0 width=400 height=100></a>');
}
else if(whichImage==6){
document.write('<a href ="http://www.sigamp.com"><img src="'+theImages[whichImage]+'" border=0 width=300 height=80></a>');
}

}
</script>


And then I put this in my signature, or wherever else I want to put it:

Quote:
 
<script>showImage();</script>


D: *Dark Kam remembers that Javascript makes Das cry

(You can take the // messages off if you want; I don't OWN this code.)
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Technology Chat · Next Topic »
Add Reply
  • Pages:
  • 1
  • 2