Making the image invisible? :S

Questions about programming languages and debugging
Post Reply
User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
19
Contact:

Making the image invisible? :S

Post by ayu »

How do i make the image that is loaded invisable? :S


var refreshrate=2;
var image="http://www.godhatessweden.com/images/royalfam2.jpg";
var imgheight=565;
var imgwidth=800;
function refresh(){
document.images["pic"].src=image+"?"+new Date();
setTimeout('refresh()', refreshrate*1000);}
document.write('<IMG SRC="'+image+'" ALT="Alternate Text" NAME="pic" ID="pic" WIDTH="'+imgwidth+'" HEIGHT="'+imgheight+'" STYLE="border: 1px solid Black;">');
if(document.images)window.onload=refresh;

User avatar
Gogeta70
^_^
^_^
Posts: 3275
Joined: 25 Jun 2005, 16:00
19

Post by Gogeta70 »

You try too hard.

<img src="www.domain.com/path/to/img.ext" style="position:absolute; z-index:-5;">
¯\_(ツ)_/¯ It works on my machine...

User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
19
Contact:

Post by ayu »

So you are not telling me? =(

User avatar
Gogeta70
^_^
^_^
Posts: 3275
Joined: 25 Jun 2005, 16:00
19

Post by Gogeta70 »

What, do you not see the html i posted?
¯\_(ツ)_/¯ It works on my machine...

User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
19
Contact:

Post by ayu »

Yeah but i don't want to use that :wink:

EDIT: Thx anyway for the code, but i found out that i can use very smal frames to make it "invisible"

User avatar
Gogeta70
^_^
^_^
Posts: 3275
Joined: 25 Jun 2005, 16:00
19

Post by Gogeta70 »

Lol, and why don't you want to use my code?
¯\_(ツ)_/¯ It works on my machine...

User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
19
Contact:

Post by ayu »

Do i need a reason? :s

User avatar
Gogeta70
^_^
^_^
Posts: 3275
Joined: 25 Jun 2005, 16:00
19

Post by Gogeta70 »

Reason is not needed, but there is never something done without reason. Life doesn't exist without reason.

So yes, what's your reason?
¯\_(ツ)_/¯ It works on my machine...

User avatar
DNR
Digital Mercenary
Digital Mercenary
Posts: 6114
Joined: 24 Feb 2006, 17:00
18
Location: Michigan USA
Contact:

a reason is a purpose. live life with reason.

Post by DNR »

What is the reason for not having a reason, is this unreasonable?

I guess the offense is neo asked a question and got a good answer from gogeta, then turned it down. Thats like asking for a glass of water, then saying "no thanks" when someone offers a bottle of water.

You never know who is going to give you your last glass of water..

DNR
-
He gives wisdom to the wise and knowledge to the discerning. He reveals deep and hidden things; he knows what lies in Darkness, and Light dwells with him.

Post Reply