/    Sign up×
Community /Pin to ProfileBookmark

JS Page splitter

Hi Guys,
Hope you can help – On my site [url]www.herrlip.com[/url] I have a transparent text box in JS – If you open my site in Mozilla and IE 5.5 or 6 its ok, however if you open it in Opera browser and IE 7 Beta 3 (which looks very similar to opera) the image transpar fails – Just wondering if anyone can see anything in the JS – I cant see the wood through the trees at the moment – Its just I want it to work in all browsers thats all.

Any ideas?

Jamie

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@vwphillipsAug 10.2006 — play with this
[CODE]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
<title></title>
<script language="JavaScript" type="text/javascript">
<!--

function Tst(){
zxcOpacity(document.getElementById('IF1'),50);
}


function zxcOpacity(zxcobj,zxcopc) {
if (zxcopc<0||zxcopc>100){ return; }
if (zxcobj.style.MozOpacity!=null){ zxcobj.style.MozOpacity=(zxcopc/100)-.001; }
else if (zxcobj.style.opacity!=null){ zxcobj.style.opacity=(zxcopc/100)-.001; }
else if (zxcobj.style.filter!=null){ zxcobj.style.filter = 'alpha(opacity='+zxcopc+')'; }
else if (zxcobj.KHTMLOpacity!=null){ zxcobj.KHTMLOpacity=(zxcopc/100)-.001; }
}


//-->
</script>
</head>

<body onload="Tst(); ">
<iframe id="IF1" src="http://www.js-examples.com" width="400" height="400"></iframe></body>

</html>[/CODE]
×

Success!

Help @herrlip spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.29,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...