Rotating banner script: Difference between revisions

m
→‎Introduction: Removing unnecessary section.
m (→‎PHP: Fixing grammar.)
m (→‎Introduction: Removing unnecessary section.)
Line 18: Line 18:


===Using a text editor===
===Using a text editor===
While you can edit your main file where all of your HTML is kept in your WYSIWYG editor, if that's what you do, you ''will'' need to edit the other files which run the script in an actual text editor. It is ''very important'' that you ''do not'' use Microsoft Word, or Microsoft WordPad. Both of these programs add "invisible" formatting tags to your text, and will make your uploaded files unreadable. So, the best thing to do is open Microsoft Notepad. This is the only Microsoft editor which will give you clean, unformatted text.
While you can edit your main file where all of your HTML is kept in your WYSIWYG editor, if that's what you do, you ''will'' need to edit the other files which run the script in an actual text editor. It is ''very important'' that you ''do not'' use Microsoft Word, or Microsoft WordPad. Both of these programs add "invisible" formatting tags to your text, and will make your uploaded files unreadable. So, the best thing to do is open Microsoft Notepad. This is the only Microsoft editor which will give you clean, unformatted text.
 
===Using includes===
I use what's called a "php include" for this script, as it helps keep my main files "cleaner" while I'm working on them. For more information on what an include is, or how it works, see the [[PHP Includes]] tutorial. For the purposes of this tutorial, I will simply show you the includes as they are included in the files we use on the site.


==Step 1: Creating your list of images==
==Step 1: Creating your list of images==