PDA

View Full Version : heeeeeeelp


dr_em2001
07-22-2002, 07:16 PM
Hi, im basically new at HTML, i know basics and stuff, but on the Dynamic Drive website they have codes you can copy and paste, and there is like a document inside it with instructions, do i need to delete those instructions for it to work right? or do i have to leave them in? or does it matter?:confused: thanx for your help

boxer_1
07-22-2002, 07:39 PM
Those instructions are most likely commented out (ie: // Instructions...) and should be left in place. You must leave the credits and it's a good idea to leave the instuctions in place in case you want to change the script's configuration in the future ;). What particular script are you referring to (link)?

bacterozoid
07-22-2002, 08:14 PM
Yupyup. In JavaScript (that i know of) putting '//' before a line will cause it to ignore everything else in that line and make it possible to put instructions in it. in just html, '<!-- TEXT -->' will cause whatever is in the middle of the tags there to be ignored and makes it possible to put comments or instructions inside of it.

boxer_1
07-22-2002, 09:01 PM
Just to expand one step further, you may also see this incorperated into many of the scripts you'll come accross:

/* This is simply another type
of commenting for commenting out
multiple lines of text */

In JavaScript, the above and "//" are used to place comments inside the code to explain certain aspects of the code and tell you how to configure certain variables. They will have no effect on the functionality of the script. In some cases, you'll see:

Uncomment the below if you would like to control blah
// var blah = 'Yada Yada';

In the above case, you would simply remove the "//" in front of "var" to uncomment that section of the code. In summary, unless otherwise specified, you're best off to leave the comments in the code ;).

dr_em2001
07-22-2002, 09:05 PM
http://www.dynamicdrive.com/dynamicindex13/circletext.htm is the link. thanx for all your help

boxer_1
07-22-2002, 09:15 PM
You're welcome :thumbsup: ! All of the comments in the script you provided a link to can stay in place. They tell you how to configure certain aspects of the script. If you remove them and later decide to re-configure something in the script you might not remember what does what...lol (maybe you would). At any rate, those comments won't effect the functionality of the script. Just so you know, we do have a specific forum for Dynamic Drive scripts should you have any questions about a particular script in the future. Good luck ;) .