![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Web Design & Programming Discussion of web design, and server-side & client-side scripting |
![]() |
|
|
Thread Tools |
|
|
#1 (permalink) |
|
Registered User
Join Date: Aug 2006
Posts: 138
OS: WinXP Pro
|
EZ Code of the Day ...
Hi Gang ~ Yep I know, most of you can produce this code in your sleep but I thought I'd like to throw in a simple html or js code once in awhile for those that could use them.
Any Code I submit can be altered to do or look anyway you wish. If you need help with this or that, shoot me a PM. One last thing, I guess you can say, I'm old school so much of what I toss in is Old School HTML instead of letting Flash Templates do the work for you (although I use that stuff too) Today's EZ Code is a simple Drop Down Menu ********************************************************* <!-- TWO STEPS TO INSTALL PULLDOWN MENU: 1. Paste the coding into the HEAD of your HTML document 2. Add the last code into the BODY of your HTML document --> <!-- STEP ONE: Copy this code into the HEAD of your HTML document --> <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function formHandler(form){ var URL = document.form.site.options[document.form.site.selectedIndex].value; window.location.href = URL; } // End --> </SCRIPT> </HEAD> <!-- STEP TWO: Paste this code into the BODY of your HTML document --> <BODY> <center> <form name="form"> <select name="site" size=1> <option value="">Select Category <option value="example.html">MyPage <option value="example2.html">My 2nd Page <option value="http://www.footballforum.com">My Friend's Page <option value="/folder/example3.html">Page in different folder <option value="http://www.techsupportforum.com">Our Site <option value="one_more_page.html">etc,etc,etc,etc, </select> <input type=button value="Go!" onClick="javascript:formHandler()"> </form> </center> *****************************************************
__________________
The Source Code and a good Terminology Reference Book can be the greatest Programming Instructor you'll ever find ... Did you know Windows Notepad, Microsoft Word or any Text Rendering & Editing Program is all you need to build Web Pages? |
|
|
|
|
|
#2 (permalink) |
|
Asst. Manager, Design
|
Re: EZ Code of the Day ...
Thanks a million for this, Blu! I remember having to always look up drop-down menu code in my early HTML days but it really is quite simple to do.
__________________
![]() ![]() ----------------------------- There are no dumb questions, unless a customer is asking them. Help in the fight against cancer and other serious illnesses.
|
|
|
|
|
|
#3 (permalink) |
|
Registered User
Join Date: Aug 2006
Posts: 138
OS: WinXP Pro
|
Tip of the Day ...
One of the best Tools I have in my system for Design and a host of other applications is EZ Screen Capture. You'll find it helpful when you need to grab an image that will fit just nicely into your Layout.
Also it is a great tool when you need to illustrate the problem you're having to others. I can't count the times , Tech Support Agents have to me because of the image I sent, they were able to actually see what I was talking about. I would also be wise to create a Free Account on one of the Image Posting Sites like Photobucket or whatever. You can then use EZ Screen Capture to grab the image you want and Upload it to PhotoBucket then post it on TSF for the World to see.
__________________
The Source Code and a good Terminology Reference Book can be the greatest Programming Instructor you'll ever find ... Did you know Windows Notepad, Microsoft Word or any Text Rendering & Editing Program is all you need to build Web Pages? |
|
|
|
|
|
#4 (permalink) |
|
Asst. Manager, Design
|
Re: EZ Code of the Day ...
I don't mean to knock your suggestion, but just pressing the Print Screen key will do the same thing. Just paste the image into your favorite editing program and save it.
__________________
![]() ![]() ----------------------------- There are no dumb questions, unless a customer is asking them. Help in the fight against cancer and other serious illnesses.
|
|
|
|
|
|
#5 (permalink) |
|
Registered User
Join Date: Aug 2006
Posts: 138
OS: WinXP Pro
|
Re: EZ Code of the Day ...
Actually that's not a good method since it copies the whole screen and Screen Capture can capture and section of it you wish ...
__________________
The Source Code and a good Terminology Reference Book can be the greatest Programming Instructor you'll ever find ... Did you know Windows Notepad, Microsoft Word or any Text Rendering & Editing Program is all you need to build Web Pages? |
|
|
|
|
|
#6 (permalink) |
|
Registered User
Join Date: Aug 2006
Posts: 138
OS: WinXP Pro
|
Re: EZ Code of the Day ...
Hi Gang ~
I’m currently working on a Tutorial using Flash that you’re gonna really like but as I re-read the instructions, I realized it wasn’t too clear for those who might not have Flash experience. I found myself committing the same offense many others do in thinking . “ You know what I mean “. Anyway, it will be up probably tomorrow. For those who are interested, this is a little code to place in the Head of your Document that will Display an Amber Alert Ticker. I am especially concerned about this because it just seems to me I’m hearing more & more stories about little Kids being abducted, sexually abused or killed then I ever recall years ago. So the more these Amber Alerts are around maybe the better the chance of someone actually seeing one of these Kids. If you save one child, you’ve done more than most in a lifetime. Amber Alert Java Applet Code for Website Pages : <!-- Begin Code Amber Ticker code. --> <P ALIGN=CENTER> <SCRIPT LANGUAGE="JavaScript1.2" src="http://www.codeamber.org/js/codea.js"> </script> </P> <!-- end of Code Amber Ticker code (c)Copyright codeamber.org 2002, 2003, 2004,2005,2006,2007--> ****************************************************** THIS IS A COOL LITTLE CURSOR SNAKE SCRIPT WHERE A SET OF WORDS THAT YOU DECIDE WILL FOLLOW THE CURSOR AROUND THE SCREEN. THIS IS FUN FOR AWHILE BUT SOON YOU MIGHT GET TIRED OF SEEING IT AS I DID OVER TIME. ANY PROBLEMS GETTING IT WORKING, LET ME KNOW .. ******************************************************* <!-- THREE STEPS TO INSTALL MOUSE BANNER: 1. Copy the coding into the HEAD of your HTML document 2. Add the last code into the BODY tag your HTML document 3. Put the final code inside the BODY of your HTML page --> <!-- STEP ONE: Paste this code into the HEAD of your HTML document --> <HEAD> <style>.spanstyle { COLOR: white; FONT-FAMILY: Verdana; FONT-SIZE: 8pt; FONT-WEIGHT: bold; POSITION: absolute; TOP: -50px; VISIBILITY: visible } </style> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin var x, y; var step = 10; var flag = 0; var message = "JavaScript is so cool !! "; message = message.split(""); var xpos = new Array(); for (i = 0; i <= message.length - 1; i++) { xpos[i] = -50; } var ypos = new Array(); for (i = 0; i <= message.length - 1; i++) { ypos[i]= -50; } function handlerMM(e) { x = (document.layers) ? e.pageX : document.body.scrollLeft + event.clientX; y = (document.layers) ? e.pageY : document.body.scrollTop + event.clientY; flag = 1; } function makesnake() { if (flag == 1 && document.all) { for (i = message.length - 1; i >= 1; i--) { xpos[i] = xpos[i - 1] + step; ypos[i] = ypos[i - 1]; } xpos[0] = x + step; ypos[0] = y; for (i = 0; i < message.length - 1; i++) { var thisspan = eval("span" + (i) + ".style"); thisspan.posLeft = xpos[i]; thisspan.posTop = ypos[i]; } } else if (flag==1 && document.layers) { for (i = message.length - 1; i >= 1; i--) { xpos[i] = xpos[i - 1] + step; ypos[i] = ypos[i - 1]; } xpos[0] = x + step; ypos[0] = y; for (i = 0; i < message.length - 1; i++) { var thisspan = eval("document.span" + i); thisspan.left = xpos[i]; thisspan.top = ypos[i]; } } var timer = setTimeout("makesnake()", 10); } // End --> </script> </HEAD> <!-- STEP TWO: Copy this code into the BODY tag of your HTML document --> <body bgcolor="#000080" text="#000000" onload="makesnake()" style="OVERFLOW-X: hidden; OVERFLOW-Y: scroll; WIDTH: 100%"> <!-- STEP THREE: Put the final code inside the BODY of your HTML document --> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin for (i = 0; i <= message.length-1; i++) { document.write("<span id='span"+i+"' class='spanstyle'>"); document.write(message[i]); document.write("</span>"); } if (document.layers) { document.captureEvents(Event.MOUSEMOVE); } document.onmousemove = handlerMM; // End --> </script> <p><center> <font face="arial, helvetica" SIZE="-2">The Tech Support Forum<br> by <a href="http://techsupportforum.com">The Tech Support Forum</a></font> </center><p> <!-- Script Size: 2.08 KB -->
__________________
The Source Code and a good Terminology Reference Book can be the greatest Programming Instructor you'll ever find ... Did you know Windows Notepad, Microsoft Word or any Text Rendering & Editing Program is all you need to build Web Pages? |
|
|
|
|
|
#7 (permalink) |
|
Design Team Member
|
Re: EZ Code of the Day ...
I use XnView, so it makes screen capturing really easy.
__________________
Free Resources PC Protection - Comodo Firewall | AVG Anti-Virus | WinPatrol | Ad-Aware | Spybot S&D | SpywareBlaster |Web Design/Programming - KompoZer (Editor) | Paint.NET (Graphic) | GIMP+GIMPShop (Graphic) | FileZilla (FTP Client) | Free Hosting | |
|
|
|
|
|
#8 (permalink) |
|
Registered User
Join Date: Aug 2006
Posts: 138
OS: WinXP Pro
|
Re: EZ Code of the Day ...
Never heard of it .. so where's the Link ? And/Or what does it do differently than EZ Screen Capture ?
__________________
The Source Code and a good Terminology Reference Book can be the greatest Programming Instructor you'll ever find ... Did you know Windows Notepad, Microsoft Word or any Text Rendering & Editing Program is all you need to build Web Pages? |
|
|
|
|
|
#10 (permalink) |
|
Registered User
Join Date: Aug 2006
Posts: 138
OS: WinXP Pro
|
preLoader Tutorial
Hi Gang ~
Sorry I've been away for a few days and then Sunday was Football of course but to show my appreciation for what you all are providing here, I thought I'd put this little Tutorial together on how to create a preLoader for your Flash Movies. Ok, nuff said all will be explained by clicking on this link preLoader Tutorial using Masking & Tweening Enjoy and PM me with any questions ....
__________________
The Source Code and a good Terminology Reference Book can be the greatest Programming Instructor you'll ever find ... Did you know Windows Notepad, Microsoft Word or any Text Rendering & Editing Program is all you need to build Web Pages? |
|
|
|
|
|
#11 (permalink) |
|
Registered User
Join Date: Aug 2006
Posts: 138
OS: WinXP Pro
|
** Announcement **
Of course I have no knowledge of who found or is finding any of this information valuable or even interesting. When I first decided to Post these codes and/or tutorials, I had hoped for a fair to decent amount of exchange of ideas, comments and even contribution from other Members.
Unless I'm mistaken, there have been approx. 110 Views other than myself and to date, only three persons have made some comment of these submissions. I had hoped to get much more involved by Posting a variety oof Step by Step Tutorials which would have touched upon simplistic Masking methods to more advanced applications that included Masking with Interactivity features. However, I've been informed that unless there is a increased & sustained show of interest, this Thread might be closed and quite frankly although I find that would be unfortunate, I would tend to agree with the person's thinking on this matter. So, my plea if you will, is simply this, since I can see over 100 other Members have taken a peek to some degree in this section, it would be nice if you could leave a small comment behind on whether you find this information interesting enough to continue. Thank You
__________________
The Source Code and a good Terminology Reference Book can be the greatest Programming Instructor you'll ever find ... Did you know Windows Notepad, Microsoft Word or any Text Rendering & Editing Program is all you need to build Web Pages? |
|
|
|
|
|
#12 (permalink) |
|
Moderator Hardware Team
|
Re: EZ Code of the Day ...
I don't do any coding at all, but just thought I'd reply to say your time and effort on these posts is appreciated and certainly not wasted.
We had a similar situation a few months ago when freddyhard posted some detailed tutorials on AutoCAD and 3D design. They got plenty of views but not much response, the same as yours, but after a while we noticed the view counter was still steadily rising, meaning the information was probably being found by googlers who quite often just take the info and don't reply. The problem could be that all your codes are in one thread with a vague title. I don't know how to improve this without having a separate thread for each item of code, but this defeats the purpose of having a dedicated thread. Or it could be that the regulars who view our Web Design section already know how to do this. People tend to visit forums when they have a specific problem to fix, so however good your instructions are, they might not be applicable to any of the 100+ viewers you've had so far. Give it some more time to see if you can get a discussion going. Don't give up ![]()
__________________
![]() New members: Subscribe to your thread (Thread Tools) to receive an instant email notification when you get a reply. TSF Folding@Home Team 85015 - details here |
|
|
|
|
|
#13 (permalink) |
|
Design Team Member
Join Date: Apr 2005
Location: Éire
Posts: 1,543
OS: 2k (still!)
|
Re: EZ Code of the Day ...
i've copied out the code threads from blubarry to here. i closed the thread as well to stop chit chat and will copy subsequent posts into it.
__________________
![]() "It takes two to lie, one to lie and one to listen" Homer Last edited by freddyhard : 11-03-2007 at 05:15 PM. Reason: syntax |
|
|
|
|
|
#14 (permalink) |
|
Registered User
Join Date: Aug 2006
Posts: 138
OS: WinXP Pro
|
** Good to Remember **
In working with Flash ActionScripts, if you get an Error Message stating " Statement Must Appear Within on Handler "
This simply means you are putting your Action Code on the Button or Movie Clip. In this case, try placing the Code on the associated Frame and that should take care of the problem. A good working habit to always use is creating a separate Frame for your Codes, naming it Action(s) instead of the frame associated with your Symbol. BB
__________________
The Source Code and a good Terminology Reference Book can be the greatest Programming Instructor you'll ever find ... Did you know Windows Notepad, Microsoft Word or any Text Rendering & Editing Program is all you need to build Web Pages? |
|
|
|
|
|
#15 (permalink) | |
|
Design Team Member
|
Re: EZ Code of the Day ...
Quote:
I've never used EZ Screen Capture, but it's pretty easy (and free) with XnView as well (which is also a great basic graphic tool to open something like 400 different graphic extensions and some basic graphic work like enlarging/shrinking, a few filters, etc). So if you press print screen on your keyboard, you just open up XnView (which is small and lightweight, so it's fast) and press ctrl+v (for paste) ... your desktop image shows up, and you can very easily cut out what you want from the image with it's crop tool. I found it because it was the only program out there that opened a specific graphic file that is used in game I used to play. Everytime I fix someone's computer or anything like that, I always install it for them because it's so handy.
__________________
Free Resources PC Protection - Comodo Firewall | AVG Anti-Virus | WinPatrol | Ad-Aware | Spybot S&D | SpywareBlaster |Web Design/Programming - KompoZer (Editor) | Paint.NET (Graphic) | GIMP+GIMPShop (Graphic) | FileZilla (FTP Client) | Free Hosting | |
|
|
|
|