1 2 3// Multimedia Patient Education Script ---------------------------------------------- 4function openitCustom1(moveId){ 5var logoPath = "http://www.neckpain.com/flash/logo-webmovies.swf"; 6var filePath = "http://www.hipsknees.info/basemovie/basemovie.asp?moveId="+moveId+"&logofile="+logoPath+"&presents=Kraus Back and Neck Institute Dr Gary Kraus Board Certified Neurosurgery Houston Texas"; 7 newwindow = window.open(filePath,"newwin5","scrollbars=no,toolbar=no,location=no,directories=no,menubar=no,resizable=no,status=no,width=732,height=453"); 8 newwindow.focus(); 9} 10 11 // To open a popup window ------------------------------------------------------------------------------// 12function MM_openBrWindow(theURL,winName,features) { 13 window.open(theURL,winName,features); 14} 15 16 17var width_val; 18 19if( typeof( window.innerWidth ) != 'undefined' ) { 20 //Non-IE 21 width_val = window.innerWidth; 22 } else { 23 width_val = screen.width; 24 } 25 26if(width_val > 980){ 27// alert(width_val); 28var width_fix1 = (width_val - 980) / 2; 29var width_fix = (width_fix1 + 298)-9; 30} 31else { 32 width_fix = 298; 33} 34 35 36 37var scrolltotop={ 38 //startline: Integer. Number of pixels from top of doc scrollbar is scrolled before showing control 39 //scrollto: Keyword (Integer, or "Scroll_to_Element_ID"). How far to scroll document up when control is clicked on (0=top). 40 setting: {startline:200, scrollto: 0, scrollduration:1000, fadeduration:[1000, 100]}, 41 controlHTML: '<img src="images/top.gif" style="width:22px; height:23px" />', //HTML for control, which is auto wrapped in DIV w/ ID="topcontrol" 42 controlattrs: {offsetx:width_fix, offsety:270}, //offset of control relative to right/ bottom of window corner 43 anchorkeyword: '#top', //Enter href value of HTML anchors on the page that should also act as "Scroll Up" links 44 45 state: {isvisible:false, shouldvisible:false}, 46 47 scrollup:function(){ 48 if (!this.cssfixedsupport) //if control is positioned using JavaScript 49 this.$control.css({opacity:0}) //hide control immediately after clicking it 50 var dest=isNaN(this.setting.scrollto)? this.setting.scrollto : parseInt(this.setting.scrollto) 51 if (typeof dest=="string" && jQuery('#'+dest).length==1) //check element set by string exists 52 dest=jQuery('#'+dest).offset().top 53 else 54 dest=0 55 this.$body.animate({scrollTop: dest}, this.setting.scrollduration); 56 }, 57 58 keepfixed:function(){ 59 var $window=jQuery(window) 60 var controlx=$window.scrollLeft() + $window.width() - this.$control.width() - this.controlattrs.offsetx 61 var controly=$window.scrollTop() + $window.height() - this.$control.height() - this.controlattrs.offsety 62 this.$control.css({left:controlx+'px', top:controly+'px'}) 63 }, 64 65 togglecontrol:function(){ 66 var scrolltop=jQuery(window).scrollTop() 67 if (!this.cssfixedsupport) 68 this.keepfixed() 69 this.state.shouldvisible=(scrolltop>=this.setting.startline)? true : false 70 if (this.state.shouldvisible && !this.state.isvisible){ 71 this.$control.stop().animate({opacity:1}, this.setting.fadeduration[0]) 72 this.state.isvisible=true 73 } 74 else if (this.state.shouldvisible==false && this.state.isvisible){ 75 this.$control.stop().animate({opacity:0}
75, this.setting.fadeduration[1]) 76 this.state.isvisible=false 77 } 78 }, 79 80 init:function(){ 81 jQuery(document).ready(function($){ 82 var mainobj=scrolltotop 83 var iebrws=document.all 84 mainobj.cssfixedsupport=!iebrws || iebrws && document.compatMode=="CSS1Compat" && window.XMLHttpRequest //not IE or IE7+ browsers in standards mode 85 mainobj.$body=(window.opera)? (document.compatMode=="CSS1Compat"? $('html') : $('body')) : $('html,body') 86 mainobj.$control=$('<div id="topcontrol">'+mainobj.controlHTML+'</div>') 87 .css({position:mainobj.cssfixedsupport? 'fixed' : 'absolute', bottom:mainobj.controlattrs.offsety, right:mainobj.controlattrs.offsetx, opacity:0, cursor:'pointer'}) 88 .attr({title:'Scroll Back to Top'}) 89 .click(function(){mainobj.scrollup(); return false}) 90 .appendTo('body') 91 if (document.all && !window.XMLHttpRequest && mainobj.$control.text()!='') //loose check for IE6 and below, plus whether control contains any text 92 mainobj.$control.css({width:mainobj.$control.width()}) //IE6- seems to require an explicit width on a DIV containing text 93 mainobj.togglecontrol() 94 $('a[href="' + mainobj.anchorkeyword +'"]').click(function(){ 95 mainobj.scrollup() 96 return false 97 }) 98 $(window).bind('scroll resize', function(e){ 99 mainobj.togglecontrol() 100 }) 101 }) 102 } 103} 104 105scrolltotop.init()
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.