1 2/*************Prevent Right Click**************/ 3 4function rightclick(e) 5{ 6if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)) 7{ 8alert("Welcome to www.shreekhetra.com"); 9return false; 10} 11else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) 12{ 13alert("Welcome to www.shreekhetra.com"); 14return false; 15} 16return true; 17} 18 19// to prevent right click : 20document.onmousedown=rightclick; 21 22// to prevent right click on images include: 23for (var i=0; i<document.images.length; i++) 24{ 25document.images[i].onmousedown=rightclick; 26} 27 28/* to prevent right click on links include: 29for (var i=0; i<document.links.length; i++) 30{ 31document.links[i].onmousedown=rightclick; 32} 33if (document.layers) window.captureEvents(Event.MOUSEDOWN); 34{ 35window.onmousedown=rightclick; 36}*/ 37 38function keyDown(DnEvents) 39{ 40 k=window.event.keyCode 41 if(k==93) 42 { 43 alert("Welcome to www.shreekhetra.com"); 44 } 45} 46 47document.onkeydown = keyDown 48 49function linkthispage() 50{ 51window.open('linkthispage.html', 'LinkToThisPage', 'width=500,height=270,scrollbars=no,resizable=no,status=yes'); 52} 53 54function sharethispage() 55{ 56var url="sharethis.asp?pageurl=" + window.location + "&pagetitle=" + document.title 57window.open(url, 'ShareThisPage', 'width=500,height=270,scrollbars=no,resizable=no,status=yes'); 58} 59 60function addfav() 61{ 62 if (document.all) 63 { 64 window.external.AddFavorite 65 ("http://www.shreekhetra.com","Shreekhetra - The Holy City of Lord Jagannath") 66 } 67} 68 69function bookmarkthispage() 70{ 71 var url= window.location; 72 var title= document.title; 73 var browser=navigator.userAgent.toLowerCase(); 74 75 if (window.sidebar) { // Mozilla, Firefox, Netscape 76 window.sidebar.addPanel(title, url,""); 77 } else if( window.external) { // IE or chrome 78 if (browser.indexOf('chrome')==-1){ // ie 79 window.external.AddFavorite( url, title); 80 } else { // chrome 81 alert('Please Press CTRL+D (or Command+D for macs) to bookmark this page'); 82 } 83 } 84 else if(window.opera && window.print) { // Opera - automatically adds to sidebar if rel=sidebar in the tag 85 return true; 86 } 87 else if (browser.indexOf('konqueror')!=-1) { // Konqueror 88 alert('Please press CTRL+B to bookmark this page.'); 89 } 90 else if (browser.indexOf('webkit')!=-1){ // safari 91 alert('Please press CTRL+B (or Command+D for macs) to bookmark this page.'); 92 } else { 93 alert('Your browser cannot add bookmarks using this link. Please add this page manually.') 94 } 95} 96 97function opendesktopshortcut() 98{ 99window.open('popup/desktop.html', 'DesktopShortcut', 'width=500,height=400,scrollbars=yes,resizable=no,status=yes'); 100} 101 102function opentellafriend() 103{ 104window.open('popup/tellafriend.php', 'TellAFriend', 'width=500,height=370,scrollbars=yes,resizable=no,status=yes'); 105} 106 107function linktous() 108{ 109window.open('popup/linktous.html', 'LinkToUS', 'width=500,height=400,scrollbars=yes,resizable=no,status=yes'); 110} 111 112function photogalleryopen(link) 113{ 114 //var picturelink = link.replace("//", "**d**"); 115 browsername=navigator.appName; 116 if(browsername.indexOf("Microsoft")!=-1) 117 { 118 //window.open('photogalleryopen.php?pictureurl=' + picturelink, 'ShreekhetraPhotoGallery', 'height=' + screen.height + ',width=' + screen.width + ',scrollbars=yes,resizable=no,status=yes'); 119 window.open('photogalleryopen.php', 'ShreekhetraPhotoGallery', 'height=' + screen.height + ',width=' + screen.width + ',scrollbars=yes,resizable=no,status=yes'); 120 } 121 else 122 { 123 //aWindow = window.open('photogalleryopen.php?pictureurl=' + picturelink,"thewindow",'toolbar=0,location=0,directories=0,status=0,menubar=0, width=' + screen.width + ', height=' + screen.height + ', scrollbars, resizable'); 124 aWindow = window.open('photogalleryopen.php',"thewindow",'toolbar=0,location=0,directories=0,status=0,menubar=0, width=' + screen.width + ', height=' + screen.height + ', scrollbars, resizable'); 125 aWindow.focus(); 126 } 127} 128 129function winopen(path) 130{ 131window.open(path,"popup","width=750,height=480,left=20,top=27,scrollbars=yes,menubar=no,status=no,toolbar=no,titlebar=no") 132} 133 134function addEvent(obj, type, fn) { 135 if (obj.addEventListener) { 136 obj.addEventListener(type, fn, false); 137 } 138 else if (obj.attachEvent) { 139 obj["e" + type + fn] = fn; 140 obj[type + fn] = function () { obj["e" + type + fn](window.event); } 141 obj.attachEvent("on" + type, obj[type + fn]); 142 } 143} 144 145function validatepollfrm() { 146 var x = document.forms["frmPoll"]["pollEmail"].value; 147 if (x == null || x == "") { 148 alert("Please enter your email"); 149 document.forms["frmPoll"]["pollEmail"].focus(); 150 return false; 151 } 152} 153 154function toggleallpagemenu(menuname,simage,himage) 155{ 156 if(document.getElementById(menuname).style.display == 'none') 157 { 158 document.getElementById(menuname).style.display = 'block'; 159 document.getElementById(simage).style.display = 'none'; 160 document.getElementById(himage).style.display = 'block'; 161 } 162 else 163 { 164 document.getElementById(menuname).style.display = 'none'; 165 document.getElementById(simage).style.display = 'block'; 166 document.getElementById(himage).style.display = 'none'; 167 } 168} 169 170/*********Hide loading div Start*******/ 171function hideloadingdiv() 172{ 173 document.getElementById('ploadingdiv').style.display="none"; 174} 175addEvent(window, 'load',hideloadingdiv); 176/*********Hide loading div End*******/
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.