Jump to content


  • Posts

  • Joined

  • Last visited

jmc92's Achievements


Newbie (1/7)



  1. Also, the to examples I posted above with the eyes and the moving div both work on the target browserI would just like to limit the movement area of the second one I posted
  2. Someone asked if I could create a "cool iris" (simulator)And I told them that it would be hard but I would try to at least make a concept GUIIts really just a fancy web page I'm creating
  3. Ok well things that work on IE5 seems to work on NS4And NS4 is almost the exact clone of the browser used by the psp go called netfrontOld post of the original netfront > http://gear.ign.com/articles/638/638179p1.htmlSo coding for it is always a challenge and can be interesting at times
  4. That's pretty much perfect, but do you know a way to make that work in Netscape-4 and IE-5?Those are the target browsers
  5. I also have this script </head><script>function mouseXY(e){// so that it'll work in DOM compliant browsers as well as IEe = (e) ? e : window.event; var Y = e.clientX;var X = e.clientY;document.getElementById("movingDiv").style.left=Y;}window.onload=mouseY;</script></head><body onmousemove="mouseXY(event);"><table border="2" bordercolor="blue" cellpadding="2" cellspacing="1" width="405px" overflow="visible"><tr><td width="135"><div id="movingDiv" style="top=20;left=200;position:absolute;border-color:#000000;border:groove;width:250px;height:96px;background-color:#CCCCCC" onClick="java script:this.style.display='none';"></div></td></tr></table></body> that's closer to doing what I was talking aboutBut I would like to make it so I could constrain the area that the div is allowed to move in and have the mouse pointer be able to move over the center of the div instead of always staying to the left of it
  6. Ok so I found this script here-http://www.javascriptkit.com/script/script2/xeye.shtmlIts the only type of script like it that's cross compatible to my needsI have this imageAnd I want this image to slide around inside of it (left and right only) as the mouse moves aroundNeed help accomplishing that
  7. Is there a way of file browsing to a random txt file on my comp, and having its content loaded into a form on a web page?Further explaining the question....Theres a page with a large text formButton underneath says click to edit txt from fileAnd then I click, open and load the content into the form
  8. Sorry for the double post.But it's been 48 hrs with no response.
  9. I found this code on a web page but I cant seem to get it to work also I would like it so it starts scrolling up on mousedown and stops on mouseoutHow do I fix this <!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"><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><script type="text/javascript">var goto_top_type = -1;var goto_top_itv = 0;function goto_top_timer() {var y = goto_top_type == 1 ? document.documentElement.scrollTop : document.body.scrollTop;//alert(y);var moveby = 50; // set this to control scroll seed. minimum is fasty -= Math.ceil(y * moveby / 100);if (y < 0)y = 0;if (goto_top_type == 1)document.documentElement.scrollTop = y;elsedocument.body.scrollTop = y;if (y == 0) {clearInterval(goto_top_itv);goto_top_itv = 0;}}function goto_top() {if (goto_top_itv == 0) {if (document.documentElement && document.documentElement.scrollTop)goto_top_type = 1;else if (document.body && document.body.scrollTop)goto_top_type = 2;elsegoto_top_type = 0;if (goto_top_type > 0)goto_top_itv = setInterval('goto_top_timer()', 50);}}</script><script type="text/javascript">if (event.keyCode == 13){event.returnValue=false;event.cancelBubble = true;frames['iframe1'].location.href=document.form1.url.value;} </script><script type="text/javascript">function displayunicode(e){var unicode=e.keyCode? e.keyCode : e.charCodeif(unicode==13){ frames['iframe1'].location.href=document.getElementById("url").value }}</script></head><input type="image" src="goto_top.gif" onclick="frames['iframe1'].location."goto_top();"><iframe id="iframe1" src="http://www.google.com" border="0" style="border: 0px; width:476px; height: 197px; position:absolute; top:63px; left:2px;" name="iframe1"></iframe></body></html>
  10. Coding for older browsers is something I do alotOk I have a working script for the image switchBut the delay of page load after I click the button wont work <head><script>function showLoading(button) { button.style.backgroundImage = 'url(loading-arrows_12x12.gif)'; button.style.color = '#676561'; wait(400); // Else the form will submit before the background image changes return true;}function wait(ms) { var date = new Date(); var curDate = null; do{ curDate = new Date(); } while(curDate - date < ms);}</script><script>function myfunction() { } var delay = 5000; setTimeout( myfunction, delay )</script><style>.submitBtn { background-image: url('blank.gif'); background-repeat: no-repeat; background-position: 100% 50%; padding-right: 15px; text-align: center;}</style></head><FORM ACTION="../cgi-bin/mycgi.pl">email: <INPUT NAME="register"><button class="submitBtn" onclick="showLoading(this); setTimeout( myfunction, delay );">Submit</button></FORM>
  11. I have this codebut it does it onunclick even though I said for it to do a onclick <head><script TYPE="text/javascript"><!--// copyright 1999-2001 Idocs, Inc. http://www.idocs.com/tags/// Distribute this script freely, but keep this // notice with the code.var submitRolls = new Object();function submitroll(src, oversrc, name){this.src=src;this.oversrc=oversrc;this.name=name;this.alt="Submit Query";this.write=submitroll_write;}function submitroll_write(){var thisform = 'document.forms[' + (document.forms.length - 1) + ']';submitRolls[this.name] = new Object();submitRolls[this.name].over = new Image();submitRolls[this.name].over.src = this.oversrc;submitRolls[this.name].out = new Image();submitRolls[this.name].out.src = this.src;document.write ( '<A Onclick="if (document.images)document.images[\'' + this.name + "'].src=submitRolls['" + this.name + '\'].over.src"' + ' Onclick="if (document.images)document.images[\'' + this.name + "'].src=submitRolls['" + this.name + '\'].out.src"' + ' HREF="java script:' );if (this.sendfield) { if (! this.sendvalue) this.sendvalue = 1; document.write(thisform, ".elements['", this.sendfield, "'].value='", this.sendvalue, "';"); }document.write(thisform + '.submit();void(0);"');if (this.msg)document.write(' onClick="return confirm(\'' , this.msg, '\')"');document.write('>');document.write('<IMG SRC="' + this.src + '" ALT="' + this.alt + '" BORDER=0 NAME="' + this.name + '"');if (this.height)document.write(' HEIGHT=' + this.height);if (this.width)document.write(' WIDTH=' + this.width);if (this.otheratts)document.write(' ' + this.otheratts);document.write('></A>');if (this.sendfield) { document.write('<INPUT TYPE=HIDDEN NAME="' + this.sendfield + '">'); document.forms[document.forms.length - 1].elements[this.sendfield].value=''; }}//--></SCRIPT></head><FORM ACTION="../cgi-bin/mycgi.pl">email: <INPUT NAME="email"><script TYPE="text/javascript"><!--var sr = new submitroll("submit.out.gif","submit.over.gif","mysubmit");sr.write();//--></SCRIPT><NOSCRIPT><INPUT TYPE=SUBMIT VALUE="Go!"></NOSCRIPT></FORM>
  12. hmmokwhat about the image switch
  13. Ok I have an image button on a registration formbut what im trying to do is make it so when the button is clicked the image will change an stay changedand a 10 second delay before the next page loadshelp please
  • Create New...