Jump to content

Couple Of Questions


glenelkins

Recommended Posts

Hi

 

I have a function that sets the transparency of a div element:

 

function HideMain () {

var obj = document.getElementById('outer');
var value = 5;

        obj.style.opacity = value/10;
obj.style.filter = 'alpha(opacity=' + value*10 + ')';
obj.disabled = true;

}

 

Is it possible to set the entire browser window as transparent?

 

Secondly, how can I have a div element stick to the centre of the page and stay there even if the user scrolls up and down.

Link to comment
https://forums.phpfreaks.com/topic/49164-couple-of-questions/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.