Log in

View Full Version : Script Question ...



justlostisall
02-12-2014, 11:10 PM
I have seen a pop up for a link to give a quote or email etc. I cant find what type of script that it is. The link is http://www.wedolines.com/ and when you scroll down the page the link pops up with an image. If anyone knows .. please tell me what script it is.

Thanks :)

vwphillips
02-13-2014, 12:41 PM
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

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

<head>
<title></title>
<style type="text/css">
/*<![CDATA[*/

BODY {
height:3000px;
}

#tst {
position:fixed;z-Index:101;right:50px;bottom:50px;
}

/*]]>*/
</style></head>

<body>
<img id="tst" src="http://www.vicsjavascripts.org/StdImages/1.gif" />

<script type="text/javascript">
/*<![CDATA[*/

var zxcViewScroll={

init:function(o){
var oop=this,obj=document.getElementById(o.ElementID),s=o.ScrollView;
if (obj){
o.obj=obj;
o.s=typeof(s)=='number'?s:-10;
this.scroll(o);
this.addevt(window,'scroll','scroll',o);
// setInterval(function(){ oop.scroll(o); },100);
}
},

scroll:function(o){
var s=(window.innerHeight?window.pageYOffset:document.documentElement.clientHeight?document.documentElement.scrollTop:document.body.scrollTop),ud=s>o.s;
ud!=o.ud?o.obj.style.visibility=s>o.s?'visible':'hidden':null;
o.ud=ud;
},

addevt:function(o,t,f,p,p1){
var oop=this;
o.addEventListener?o.addEventListener(t,function(e){ return oop[f](p,p1);},false):o.attachEvent?o.attachEvent('on'+t,function(e){ return oop[f](p,p1); }):null;
}

}

zxcViewScroll.init({
ElementID:'tst',
ScrollView:100
});
/*]]>*/
</script>
</body>

</html>

justlostisall
02-13-2014, 04:43 PM
This is the script I was looking for. I appreciate your time for answering my post. This is very helpful.

Thanks again :)