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...
any GD like functions in javascript?
Moderator: General Moderators
BTW how can I make background Color transparent or none in javascript?
there, set bgcolor to transparent. NONE, NULL, 0, transparent doesn't work
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
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>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