Page 1 of 1

any GD like functions in javascript?

Posted: Sun Dec 01, 2002 9:32 pm
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...

Posted: Tue Dec 03, 2002 8:57 pm
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

Posted: Wed Dec 04, 2002 10:49 pm
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 ;) )