Jump to content

deejaybet

Members
  • Posts

    42
  • Joined

  • Last visited

Everything posted by deejaybet

  1. ok you have just onfused me lol... the site works perfectly as it should in IE.. centered were is shoudl etc... but if i view it on other browsers say for example firefox... the site has some elements... mainly text aligned correctly but the page(s) go to the default setting (left side)
  2. some browsers like firefox pick up text-align: center on sum of the site but other parts of the site it ignores
  3. actually never mind lol i got it thanks mate
  4. what changes was made to the script.. i dnt really know what you mean by referin to the feilds differently
  5. well the main code that i no definately doesnt work in other browsers is the code below <script language=javascript>var normal="abcdefghijklmnopqrstuvwxyz?*<>"var changed="αвcδзғgнijкιмησρqяѕтυνшxчz؟●«»"var haxxor="48(d3f9h!jk1mn0pqr57uvwxy2?*<>"function change(_in, _out, _hax){ var s="", hx=""; var n=_in.value.toLowerCase(); if (_in.value.length==0) return; for(i=0; i<n.length; i++) { var c=n.charAt(i); for(j=0; (j<normal.length)&&(c!=normal.charAt(j)); j++); if (j<normal.length) { s+=changed.charAt(j); hx+=haxxor.charAt(j); } else { s+=c; hx+=c; } } _out.value=s; _hax.value=hx;}function breezah(_in, _out){ var s=""; var n=_in.value.toLowerCase(); if (_in.value.length==0) return; for(i=0; i<n.length; i++) { var c=n.charAt(i); s+=i%2?c:c.toUpperCase(); } _out.value=s;}</SCRIPT> unless someone can make that code compatible with out browsers, i have no oher choice but to block that page :Dps. the code is hard to explain so heres a link to the actual page (IE only)http://www.layer2hosting.com/~idesign/Phil...ges/msnname.htm
  6. does anyone know a code that denies a user access to your website if they don't use IE as most coding in the site is IE based and other browsers don't support the certain coding.
  7. any work done to "protect" images or documents or anything on the internet just uses up bandwidththere is no way to get round it except make things complicated... encode yopur script.. (can be decoded tho) use lkayers (can still get pictures)... anything u do... theres a way round it!!
  8. i no what you mean... when a user goes to right click save as the picture., when the mouse is rolled over the image, the image disappears... u can do a mouseover thing lol.. make a picutre the same size as the picture u wish to protect and make it so that when the mouse is rolled over the picture, the image turns to the background colour... i seen this somewhere.
  9. ok i have a count up script: <script language="JavaScript1.2">function setcountup(theyear,themonth,theday){yr=theyear;mo=themonth;da=theday}setcountup(2005,5,22)var displaymessage="have passed since the debut of our site!"var countupwidth='95%'var countupheight='20px' //applicable only in NS4var countupbgcolor='lightyellow'var opentags='<font face="Verdana"><small>'var closetags='</small></font>'var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")var crosscount=''function start_countup(){if (document.layers)document.countupnsmain.visibility="show"else if (document.all||document.getElementById)crosscount=document.getElementById&&!document.all?document.getElementById("countupie") : countupiecountup()}if (document.all||document.getElementById)document.write('<span id="countupie" style="width:'+countupwidth+'; background-color:'+countupbgcolor+'"></span>')window.onload=start_countupfunction countup(){var today=new Date()var todayy=today.getYear()if (todayy < 1000)todayy+=1900var todaym=today.getMonth()var todayd=today.getDate()var todayh=today.getHours()var todaymin=today.getMinutes()var todaysec=today.getSeconds()var todaystring=montharray[todaym]+" "+todayd+", "+todayy+" "+todayh+":"+todaymin+":"+todaysecpaststring=montharray[mo-1]+" "+da+", "+yrdd=Date.parse(todaystring)-Date.parse(paststring)dday=Math.floor(dd/(60*60*1000*24)*1)dhour=Math.floor((dd%(60*60*1000*24))/(60*60*1000)*1)dmin=Math.floor(((dd%(60*60*1000*24))%(60*60*1000))/(60*1000)*1)dsec=Math.floor((((dd%(60*60*1000*24))%(60*60*1000))%(60*1000))/1000*1)if (document.layers){document.countupnsmain.document.countupnssub.document.write(opentags+dday+ " days, "+dhour+" hours, "+dmin+" minutes, and "+dsec+" seconds "+displaymessage+closetags)document.countupnsmain.document.countupnssub.document.close()}else if (document.all||document.getElementById)crosscount.innerHTML=opentags+dday+ " days, "+dhour+" hours, "+dmin+" minutes, and "+dsec+" seconds "+displaymessage+closetagssetTimeout("countup()",1000)}</script><ilayer id="countupnsmain" width=&{countupwidth}; height=&{countupheight}; bgColor=&{countupbgcolor}; visibility=hide><layer id="countupnssub" width=&{countupwidth}; height=&{countupheight}; left=0 top=0></layer></ilayer> but i want the script to be for a fixed time zone UTC+100 i also want to make the script count up from a certain timeexample:count from:22 May 2005 10:30 PM UTC+100
  10. javascripts the key:create a file (filename).js and place this in it function setActiveStyleSheet(title) { var i, a, main; for(i=0; (a = document.getElementsByTagName("link")[i]); i++) { if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) { a.disabled = true; if(a.getAttribute("title") == title) a.disabled = false; } }}function getActiveStyleSheet() { var i, a; for(i=0; (a = document.getElementsByTagName("link")[i]); i++) { if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title") && !a.disabled) return a.getAttribute("title"); } return null;}function getPreferredStyleSheet() { var i, a; for(i=0; (a = document.getElementsByTagName("link")[i]); i++) { if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("rel").indexOf("alt") == -1 && a.getAttribute("title") ) return a.getAttribute("title"); } return null;}function createCookie(name,value,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else expires = ""; document.cookie = name+"="+value+expires+"; path=/";}function readCookie(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null;}window.onload = function(e) { var cookie = readCookie("style"); var title = cookie ? cookie : getPreferredStyleSheet(); setActiveStyleSheet(title);}window.onunload = function(e) { var title = getActiveStyleSheet(); createCookie("style", title, 365);}var cookie = readCookie("style");var title = cookie ? cookie : getPreferredStyleSheet();setActiveStyleSheet(title); make 3 or 4 different stylesheets and place this in the page <html><head><script type="text/javascript" src="(filename).js"></script><link rel="stylesheet" type="text/css" href="../../other/default.css" title="default" /><link rel="alternate stylesheet" type="text/css" href="../../other/pink.css" title="test2" /></head><body><a href="java script://" onclick="setActiveStyleSheet('default'); return false;">Default (test1)</a> <a href="java script://" class="theme" onclick="setActiveStyleSheet('test2'); return false;">test2</a></body></html>
  11. or even better:microsoft started up just recently an email service exactly the same as hotmail but with a twist... its not an @hotmail.com or whatever but its an @your-address.comall you do is change a few things of your domain email thing lolits called Windows Live Custom Domains serviceMicrosoft will give consumers who own an Internet domain name up to 20 e-mail accounts (with 250MB per address if you live in the 50 United States, District of Columbia or Puerto Rico).It will include junk-mail filtering and virus scanning and allow a person to check e-mail from any Web-enabled PC. The service will simplify access to MSN Messenger (Windows Live Messenger), MSN Spaces (Windows Live Spaces) and other MSN services, according to the company.
  12. for CSS use;body {text-align: center;}for just normal page (HTML) use;<center></center> tagsExample;<html><head></head><body><center>text here and other stuff</center></body></html>
  13. umm... im realli confused :s lol... my site is www.philipworld.co.ukthe first page is faulty... im workin on it but neways da main page after the intro is wer i want the pages to change styles...i dont want to use the form button.. i want the choice of styles to be similar to msn.com... the text version that is lol... can u explain in simpliar terms lol im just a beginner to this css and javascript stuff
  14. i am relatively new to CSS and Javscript and i have come to a problem...i need a code for my site so that when users click on the style they want, the iframes also go with that stylefor example: the main page has the style choice and there are 2 iframes also on the page wen the user clicks on the style sheet they wud like, the background of the iframes change also..is this possible to do or not ?the code for the template switch ios shown belowfunction setActiveStyleSheet(title) {var i, a, main;for(i=0; (a = document.getElementsByTagName("link")); i++) {if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {a.disabled = true;if(a.getAttribute("title") == title) a.disabled = false;}}}function getActiveStyleSheet() {var i, a;for(i=0; (a = document.getElementsByTagName("link")); i++) {if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title") && !a.disabled) return a.getAttribute("title");}return null;}function getPreferredStyleSheet() {var i, a;for(i=0; (a = document.getElementsByTagName("link")); i++) {if(a.getAttribute("rel").indexOf("style") != -1&& a.getAttribute("rel").indexOf("alt") == -1&& a.getAttribute("title")) return a.getAttribute("title");}return null;}function createCookie(name,value,days) {if (days) {var date = new Date();date.setTime(date.getTime()+(days*24*60*60*1000));var expires = "; expires="+date.toGMTString();}else expires = "";document.cookie = name+"="+value+expires+"; path=/";}function readCookie(name) {var nameEQ = name + "=";var ca = document.cookie.split(';');for(var i=0;i < ca.length;i++) {var c = ca;while (c.charAt(0)==' ') c = c.substring(1,c.length);if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);}return null;}window.onload = function(e) {var cookie = readCookie("style");var title = cookie ? cookie : getPreferredStyleSheet();setActiveStyleSheet(title);}window.onunload = function(e) {var title = getActiveStyleSheet();createCookie("style", title, 365);}var cookie = readCookie("style");var title = cookie ? cookie : getPreferredStyleSheet();setActiveStyleSheet(title);
  15. i am relatively new to CSS and Javscript and i have come to a problem...i need a code for my site so that when users click on the style they want, the iframes also go with that stylefor example: the main page has the style choice and there are 2 iframes also on the page wen the user clicks on the style sheet they wud like, the background of the iframes change also..is this possible to do or not ?the code for the template switch ios shown belowfunction setActiveStyleSheet(title) {var i, a, main;for(i=0; (a = document.getElementsByTagName("link")); i++) {if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {a.disabled = true;if(a.getAttribute("title") == title) a.disabled = false;}}}function getActiveStyleSheet() {var i, a;for(i=0; (a = document.getElementsByTagName("link")); i++) {if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title") && !a.disabled) return a.getAttribute("title");}return null;}function getPreferredStyleSheet() {var i, a;for(i=0; (a = document.getElementsByTagName("link")); i++) {if(a.getAttribute("rel").indexOf("style") != -1&& a.getAttribute("rel").indexOf("alt") == -1&& a.getAttribute("title")) return a.getAttribute("title");}return null;}function createCookie(name,value,days) {if (days) {var date = new Date();date.setTime(date.getTime()+(days*24*60*60*1000));var expires = "; expires="+date.toGMTString();}else expires = "";document.cookie = name+"="+value+expires+"; path=/";}function readCookie(name) {var nameEQ = name + "=";var ca = document.cookie.split(';');for(var i=0;i < ca.length;i++) {var c = ca;while (c.charAt(0)==' ') c = c.substring(1,c.length);if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);}return null;}window.onload = function(e) {var cookie = readCookie("style");var title = cookie ? cookie : getPreferredStyleSheet();setActiveStyleSheet(title);}window.onunload = function(e) {var title = getActiveStyleSheet();createCookie("style", title, 365);}var cookie = readCookie("style");var title = cookie ? cookie : getPreferredStyleSheet();setActiveStyleSheet(title);
×
×
  • Create New...