any GD like functions in javascript?

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
Kyori
Forum Newbie
Posts: 23
Joined: Mon Oct 14, 2002 5:23 am
Contact:

any GD like functions in javascript?

Post by Kyori »

I'm want to load a big image , and through JS get just part of that big picture and make it table BG.

I really don't want to use GD functions because it might choke the server i'll be using and in return have my php scripts killed or deleted.

thanks...
Kyori
Forum Newbie
Posts: 23
Joined: Mon Oct 14, 2002 5:23 am
Contact:

Post by Kyori »

BTW how can I make background Color transparent or none in javascript?

Code: Select all

<span id="MYMY" style="background-Color:red">HELLO</span>
<script>
MYMY.style.backgroundColor="???";
</script>

there, set bgcolor to transparent. NONE, NULL, 0, transparent doesn't work
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

Code: Select all

<html><body>
<div style="position: absolute; top:10px; left: 10px; width=150px;">
	The First layer
</div>
<div style="position: absolute; top:15px; left: 20px; width=150px;">
	Second layer
</div>

<div style="position: absolute; top:100px; left: 10px; width=150px; background-color: #ff0000">
	The First layer
</div>
<div style="position: absolute; top:110px; left: 20px; width=150px; background-color: #00ff00; filter: alpha(opacity=50);">
	Second layer
</div>
	
</body></html>
will work with IE4+ and NS6+.
Note that IE also makes the background color transparent while at least mozilla 1.2 does not - it does if you reaplace filter: alpha(opacity=50); by -moz-opacity: 0.5 (or just add it ;) )
Post Reply