Freeloader Interface & Home Page Editing Tricks
By ADH-HH Construction Crew
(January 16, 2000)
Personal Freeloader Interface
submitted by: GlimerMann email
Ever wanted to "have" or "sponsor" your own Freeloader interface on your home page? GlimerMann offers an example of such an interface and it's code:

Here is the code for the above:
<center>
<br><br><br>
<table bgcolor="grey" border="10" width=400>
<tr><th align="center" colspan="2">
Upload with mimes.com
</th></tr>
<tr><td align="center">
<form name="mimes"
action="http://mimes.com/cgi-bin/freeload2.pl"
method="GET">
<input type="hidden" name="plug"
value="Freeloading by way of GlimerMann's">
<INPUT TYPE="text" NAME="cop" SIZE="50">
</td></tr>
<tr><td align="center">
<input type="submit" value="Freeload it!">
<input type="reset" value="Reset">
</form>
<SCRIPT LANGUAGE="JavaScript">
document.mimes.cop.value = history.previous;
</SCRIPT>
</td></tr></table>
<br><br><br>
</center>
Two things to remember here... (1) You are sending the visitor to and they are using the Mimes.com's Freeloader, not your freeloader/uploader... be nice and don't claim credit for what is not yours. (2) There are a few values in the code; such as the "document.psws.cop.value = history.previous;" within:
<SCRIPT LANGUAGE="JavaScript">
document.psws.cop.value = history.previous;
</SCRIPT>
& the name="plug" and the NAME="cop" within:
<input type="hidden" name="plug"
value="Freeloading by way of GlimerMann's">
<INPUT TYPE="text" NAME="cop" SIZE="50">
that must remain as worded. These values are set by the creator of the Freeloader and your interface will not work properly if these values are changed.
For your copying ease and pleasure, highlight the text below, c/c/p it into your home page.....
Previewing JS Failure Alert Code
submitted by: ericB email
Since the only way to preview how your failure alert will look is to have a JavaScript failure, here's a way to pretty much guarantee a failure. This tip should work because almost every time you go to a page from within the mail facility you will receive a JavaScript error. I believe this is because JavaScript is not supported in our mail facility. So, .... After you've entered the failure alert code and saved your page, view your page, then hit the "goto" key and select "Show Current." Copy the URL (cmd-A; cmd-C) and hit the "back" key. Then go into your mail list. Hit the "goto" key, hit the "delete" key until you erase the "http://" that you will find there (or do cmd-delete), enter your page's URL (cmd-V; your URL stayed in memory from the cmd-C done above) and hit "return." It is relatively certain you will get a JS failure and your failure alert will display.
"Global" Text Editor "Find and Replace"
submitted by: ericB email
When in your text editor, if you have a lot of SOME of the occurrences of the same text to be edited, here's a short-cut. For this example, let's say you want to change all your <img src="http://....... "> tags to <img transparency="35" src="http://...... "> [ note: The text you would enter into the "find" box, be adding, or placing into memory will be underlined in the examples below].
At the beginning of your HTML, or anywhere before the first occurrence of the text you want to change, do a "find" of the complete word(s) or first part of the word(s) that need to be changed. Since we are going to actually be inserting text into each of our image tags, we only need to find the part of the tag that will be changed: "find" <img src=. Once that text is found, change it by adding transparency="35" between the "words" <img and src= [note: don't forget there's a space after <img and the "35"]. Then highlight the <img transparency="35" src= part of the tag and do a cmd-C to get it into memory. So now you've changed one image tag and copied some text into memory. The "find" criteria <img src= has not changed and that text still remains in the "find" box. Let's say the next three tags don't need to be changed but the fourth one does. You would do a cmd-G three times (to take you to the second, third and then fourth occurrence). At the fourth tag, the <img src= that was "found" will be highlighted. Just do a cmd-V to paste what is in memory (<img transparency=35 src=) to replace what is highlighted and you've just changed your fourth occurrence of the image tag.
After changing that occurrence, before you move the cursor, if you do another "find" (or cmd-G), it may take you to the next occurrence, or image tag. More than likely, "find" will start from the top of your code and you will have to cycle through each occurrence (image tag) before you get to the next (fifth) occurrence. If you have 35 occurrences on a page and only fifteen of them need to be changed, it will soon get pretty tedious restarting from the top of your HTML each time and cycling through all those that don't need to be changed each time you do a "find." Instead, after you've made a change, highlight as little as one or two letters wherever your cursor happens to be after you make a change. Then do a "find" and it will force your browser to look forward / begin the search from where the cursor is located, and not begin the search at the top of the page. This was tried on the Tripod text editor but I'm pretty sure it will work with any text editor.
|