Jump to content

jmc92

Members
  • Posts

    36
  • Joined

  • Last visited

Everything posted by jmc92

  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
  14. I found an online mobile apphttp://98.228.103.157/PSPText/And I was wondering how do I make something like thisI tried duplicating it on my own site but failedAm I missing something?
  15. Well im on a mobile device at the moment and for what it is I think it works fairly quickTry validating your page with the w3validator and using the html tidy and that might improve the speed a little bitBut the main reason for slow mouseover is the quality of your images
  16. How do I make this code work?Thanks in advance to whoever can figure this out <input type="file" name="filevalue" value="submit"><input type="button" value="submit" onclick="window.frames['frame1'].location=filevalue.value"><iframe name="iframe1" src=""></iframe>
  17. um noI meant something like thisHeres a code I swiped off one of my sites<img src="http://orbitupload.com/get/bar232.png" class="c1" usemap="#nav" border="0" alt="**Site Nav**" /> <map id="nav" name="nav"><area shape="rect" alt="index" title="Home" coords="10,1,65,18" href="index.html" target="" /><area shape="rect" alt="apps" title="Apps" coords="70,2,116,18" href="apps.html" target="" /><area shape="rect" alt="Games" title="Games" coords="121,2,183,18" href="games.html" target="" /><area shape="rect" alt="search" title="Search" coords="187,2,248,18" href="../web/search.html" target="" /><area shape="rect" alt="media" title="Media" coords="253,2,307,18" href="media.html" target="" /><area shape="rect" alt="chat" title="Chat" coords="312,2,356,18" href="chat.html" target="" /><area shape="rect" alt="links" title="Links" coords="360,1,407,18" href="links.html" target="" /><area shape="rect" alt="info" title="About" coords="412,1,469,18" href="about.html" target="" /></map> This map is for one image
  18. I started off with the standard built in notepad on windows xp OSMy fav editor is Notepad++ PortableHeres a screenie of ithttp://orbitupload.com/get/notepad44.png
  19. As an alternative you could make one long image with the link names on itAnd use image mappingIf your not sure how to make a image map there a sites with online mapping toolsThis could make loading times faster on your template
  20. I have been trying to make this work as a regular file browse and have it open in the specified iframe but it doesnt work properlyHow do I fix this? <input name="url" value="file:/" id="q2" onkeyup="displayunicode(event);" type="file" style="background-color: transparent; position:absolute; border:0px; top:47px; left:50px; width: 259px; height: 12px;"><div style="position:absolute; left: 324px; top: 49px; width: 41px; height: 14px;"onclick="frames['iframe1'].location.href=document.getElementById('q2').value"></div> If it would help to answer the question I can give the full code of my page <!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" /><title>Internet Explorer-</title><script type="text/javascript">if (event.keyCode == 13){event.returnValue=false;event.cancelBubble = true;frames['iframe1'].location.href=document.form1.url.value;} </script><script LANGUAGE="JavaScript1.1"><!-- Original: Martin Webb (martin@irt.org) --><!-- This script and many more are available free online at --><!-- The JavaScript Source!! http://javascript.internet.com --><!-- Beginfunction right(e) {if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2))return false;else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) {alert("Sorry, you do not have permission to right click.");return false;}return true;}document.onmousedown=right;document.onmouseup=right;if (document.layers) window.captureEvents(Event.MOUSEDOWN);if (document.layers) window.captureEvents(Event.MOUSEUP);window.onmousedown=right;window.onmouseup=right;// End --></script></head><img src="nav.png" style="position: absolute; left: 0px; top: 0px" /><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><div style="position:absolute; left: 377px; top: 29px;"><form name="Tick"><input type="text" size="12" name="Clock"></form><script><!--/*By George Chiang (JK's JavaScript tutorial)http://javascriptkit.comCredit must stay intact for use*/function show(){var Digital=new Date()var hours=Digital.getHours()var minutes=Digital.getMinutes()var seconds=Digital.getSeconds()var dn="AM" if (hours>12){dn="PM"hours=hours-12}if (hours==0)hours=12if (minutes<=9)minutes="0"+minutesif (seconds<=9)seconds="0"+secondsdocument.Tick.Clock.value=hours+":"+minutes+":"+seconds+" "+dnsetTimeout("show()",1000)}show()//--></script></div><div style="position:absolute; left: 464px; top: 1px; width: 13px; height: 13px;><form method="post"><input type="image" src="x.png" onclick="window.close()"></form></div><div style="position:absolute; left: 8px; top: 15px; width: 18px; height: 9px;"onclick="frames['iframe1'].location.href='file.html'"></div><div style="position:absolute; left: 35px; top: 15px; width: 21px; height: 9px;"onclick="frames['iframe1'].location.href='img.html'"></div><div style="position:absolute; left: 63px; top: 15px; width: 26px; height: 9px;"onclick="frames['iframe1'].location.href='view.html'"></div><div style="position:absolute; left: 95px; top: 15px; width: 48px; height: 9px;"onclick="frames['iframe1'].location.href='file:/PSP/SYSTEM/BROWSER/bookmarks.html'"></div><div style="position:absolute; left: 151px; top: 15px; width: 30px; height: 9px;"onclick="frames['iframe1'].location.href='tools.html'"></div><div style="position:absolute; left: 186px; top: 15px; width: 25px; height: 9px;"onclick="frames['iframe1'].location.href='help.html'"></div><div style="position:absolute; width: 54px; height: 18px; left: 5px; top: 28px;" onclick="history.go(-1);"></div><div style="position:absolute; left: 74px; top: 28px; width: 35px; height: 18px;"onclick="history.go(+1);"></div><div style="position:absolute; left: 109px; top: 28px; width: 13px; height: 19px;"onclick="frames['iframe1'].location.href='stop.html'"></div><div style="position:absolute; left: 127px; top: 28px; width: 13px; height: 19px;><input type="image" src="refresh.png" onclick="frames['iframe1'].location.reload();" value="reload iFrame"></div><div style="position:absolute; left: 143px; top: 28px; width: 17px; height: 19px;"onclick="frames['iframe1'].location.href='http://www.google.com'"></div><div style="position:absolute; left: 165px; top: 28px; width: 56px; height: 19px;"onclick="frames['iframe1'].location.href='search2.html'"></div><div style="position:absolute; left: 224px; top: 28px; width: 69px; height: 19px;"onclick="frames['iframe1'].location.href='file:/PSP/SYSTEM/BROWSER/bookmarks.html'"></div><div style="position:absolute; left: 296px; top: 28px; width: 28px; height: 19px;"onclick="frames['iframe1'].location.href='mail.html'"></div><div style="position:absolute; left: 327px; top: 28px; width: 28px; height: 19px;"onclick="frames['iframe1'].location.href='non.html'"></div><div style="position:absolute; left: 349px; top: 28px; width: 21px; height: 19px;"onclick="frames['iframe1'].location.href='editing.html'"></div><input name="url" value="submit" id="q2" onkeyup="displayunicode(event);" type="file" style="background-color: transparent; position:absolute; border:0px; top:47px; left:50px; width: 259px; height: 12px;"><div style="position:absolute; left: 324px; top: 49px; width: 41px; height: 14px;" input type="button" onclick="frames['iframe1'].location.href=document.getElementById('q2').value"></div><div style="position:absolute; left: 368px; top: 50px; width: 46px; height: 11px;"onclick="frames['iframe1'].location.href='links.html'"></div><div style="position:absolute; left: 416px; top: 50px; width: 61px; height: 13px;"onclick="frames['iframe1'].location.href='content.html'"></div><div style="position:absolute; left: 57px; bottom: 2px; width: 53px; height: 10px;><FORM><input type="image" src="newtab.png" onClick="window.open('index.html','mywindow','width=480,height=272')"> </FORM></div><div><img src="load2.gif" border="0" style="position:absolute; left: 282px; bottom :1px; width :67px; height: 10px; borer="0"></div><div style="position:absolute; left: 355px; bottom: 1px; width: 52px; height: 10px;"onclick="frames['iframe1'].location.href='http://zizle.novahost.org/ie2/index.html'"></div><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>
  21. jmc92

    Twitter Widget

    Im working with browsers with flash player 5 and 6If it could be done in php it might work.......Lol it seems when im looking for the imposseible I always come hereSorry.....But if anyone knows itl be you guys lol
  22. jmc92

    Twitter Widget

    Thank you that is a good scriptBut it still did not work on the browser it needed too
  23. Ok im looking for a twitter widget for my site that works with older browsers like NS4 (Sony PSP)html would be preferable but if js or css will work then that's ok tooHelp please
×
×
  • Create New...