| | Discussion and Rate this Resource Overall Rating: 4 | designsp1 on Sep 15, 1999 at 7:14:23 AM | Rating: 4 | I found both articles to be of greater signifigant value. The second one by austegard was a bit cluttered, and harder to follow unless you traced out the {} brackets, or had better than not experience in Jscript. I guess this comes from being a C++ finatic and when creating a function, class, etc I do the following (for the sole purpose of clean looking, easy to read and follow coding)
FunctionName(int Some_Var) { code; code; code; return(etc); }
Now obviouslly this is more of a personal taste and/or preference than a must, but several hundred lines of code are sure easier to follow through the classes, functions, sub functions, loops, etc from start to end with alignment kept in sequence. A point of view from a not-so-hot speller, web and app developer. | | Jirik on Aug 23, 1999 at 3:34:15 AM | Rating: 5 | |
What to say, just great. | | austegard on Aug 20, 1999 at 9:43:20 AM | Rating: 4 | How about changing the main function to this? It takes care of the close button, the z-index, and the toggle image issues (though one has to click twice on the Toggle link to start) . Changes are in Navy.
function RUNSEWMUTILITIES() { if (!document.all.SEWMUTILITIES) { var c=new Array(); c[0]=new Array("Window Size"); c[1]=new Array("640x480","window.resizeTo(640,480)"); c[2]=new Array("800x600","window.resizeTo(800,600)"); c[3]=new Array("1024x768","window.resizeTo(1024,768)"); c[4]=new Array("Full Screen","void(window.open(window.location,null,'fullscreen=yes'))"); c[5]=new Array("Color Management"); c[6]=new Array("Background Color","void(document.bgColor=prompt('Change the background to what color?',document.bgColor))"); c[7]=new Array("Text Color","void(document.fgColor=prompt('Change the text to what color?',document.fgColor))"); c[8]=new Array("Link Color","void(document.linkColor=prompt('Change links to what color?',document.linkColor))"); c[9]=new Array("Visited Color","void(document.vlinkColor=prompt('Change visited links to what color?',document.vlinkColor))"); c[10]=new Array("Active Color","void(document.alinkColor=prompt('Change the active link to what color?',document.alinkColor))"); c[11]=new Array("Miscellaneous"); c[12]=new Array("Toggle All Images", "if (document.images.length!=0) {var toggledVis=(document.images[0].style.visibility=='visible')?'hidden':'visible'; for (var i=0;i<document.images.length;i++) void(document.images[i].style.visibility = toggledVis);}"); sPopup="<TABLE CELLSPACING=0 BGCOLOR=lightgrey ID=\"SEWMUTILITIES\" " sPopup+="STYLE=\"border:1px black solid;position: absolute; top:0; right:0; z-index:10000\">" sPopup+="<TR><TD BGCOLOR=Navy><FONT FACE=Verdana COLOR=White>SETools</FONT></TD>" sPopup+="<TD ALIGN=right BGCOLOR=Navy>" sPopup+="<INPUT TYPE=button VALUE=\"r\" STYLE=\"font-family: Webdings; font-weight: bold;\" " sPopup+="onclick=\"javascript:void(document.all.SEWMUTILITIES.outerHTML='')\">" sPopup+="</TD></TR><TR><TD COLSPAN=2><FONT SIZE=-1 FACE=Verdana>"; for (var i=0;i<c.length;i++) if (c[i][1]) { sPopup+="<A HREF=\"javascript:" + c[i][1] + "\">" + c[i][0] + "</A><BR>"; } else { sPopup+="<B>" + c[i][0] + "</B><BR>"; }; sPopup+="<HR>© 1999 <A HREF=\"http://www.siteexperts.com\">SiteExperts.com</A></FONT></FONT></TD></TR></TABLE>"; document.body.insertAdjacentHTML("beforeEnd",sPopup); }; }; | | jashley on Aug 17, 1999 at 12:01:18 PM | Rating: 4 | Very cool, brief article - but it could use some instruction (unless I missed it) on how to un-full-screen the page and could use a function to show the images hidden with the hide function (if technically possible) so that it works like a toggle! | | austegard on Aug 17, 1999 at 7:37:07 AM | Rating: 4 | Ok - so it has it's flaws, and it is a work in progress. This way though, we get to provide some input. ANd it is the best idea for a bookmarklet I have seen yet.
Making it look like a dialog box as opposed to a menu will maybe be more useful (I already moved the tool to the top right corner and added a z-index of 10000)
And now I too have a full-screen borderless, menuless and controlboxless window in the background... |
More Ratings/ Comments
To rate and comment on a resource, you must first logon.
If you are not registered, please register yourself to become a member of the SiteExperts.community.
|