Click to See Complete Forum and Search --> : Fade into Page


Four_of_Five
07-01-2003, 03:29 PM
Ok while trying to look for a...uhmm...i forgot :confused: anyhoo, i stumbled upon this page:

http://members.tripod.com/dark_maylee/dark_maylee.html
hey maybe the site owner's reading this! :)

I honestly can't remember what led me to that site :rolleyes: ...but i think you'll "find out" when you go to the site...(i suggest u cut-&-paste the link to an open browser)
What made it appealing to me was...ok, this seem childish...but the "fade-into" effect it does...

I've managed to "duplicate" the effect on my own, however, can anyone "clean up" the script below (without the nasty pop-up or under?):

after
</head>
<!--insite and popunder-->
<script language="javascript" type="text/javascript">
function showUnder(scale) {
var expdate = new Date ();
var surveyCookieName = "";
var percentOfferedSurvey = 100;
var surveyLocation = "";
var popupNewWindow = true;

expdate.setTime (expdate.getTime() + (12 * 60 * 60 * 1000));
var stored_value = GetCookie(surveyCookieName);
if (stored_value == null){
SetCookie(surveyCookieName, "under", expdate, "/", ".tripod.com");
trUnder = window.open(surveyLocation,'under','height=300,width=720,toolbar=no,directories=no,status=no,menubar =no,scrollbars=no,resizable=no');
trUnder.blur();
}


</script>

Thanks!

DaveSW
07-01-2003, 03:47 PM
<meta http-equiv="Page-Enter" content="blendTrans(Duration=1.0)">
<meta http-equiv="Page-Exit" content="blendTrans(Duration=1.0)">


It's a dedicated microsoft thing - all other browsers display normally, ie will have a filter.

http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/overview/dhtml_overviews_entry.asp

Introduction to filters and transitions is about half way down.

Four_of_Five
07-01-2003, 04:18 PM
Gee, thanks! and I thought it was a javascript thing...:p

David Harrison
07-01-2003, 04:22 PM
Coincidentally, I've done something similar but not quite the same (in mine you have to specify the colours) but still you might as well take a look.
Oh, by the way, the way it writes the contents to the div isn't standard (anymore) and so doesn't work in netscape, (I'm trying to fix that), but since you have IE you won't notice.