| 1. |
Find the Hot Potatoes source folder, and copy the hp6navbar.ht_ file into your custom source folder. |
| 2. |
Open the file in your text editor. You'll see a <div> tag containing three separate blocks of code, one for each button on the navigation bar. The third one looks like this: |
| 3. |
For our custom button, we're going to copy some of this code, to create a new button, then modify it. We don't need the include instructions, so ignore them; just copy the <button> tag (<button ... </button>), and paste it between the last [/inclNextEx] and the closing </div> tag at the end of the file. |
| 4. |
The last few lines of your file should look like this:
|
| 5. |
The next thing to do is to comment our changes. Add a comment before and after your new code like this: |
| 6. |
Next, we need to change the caption of the button to its new caption. Right now, the caption is a placeholder ([strNextExCaption]). Change this to "HotPot". |
| 7. |
Finally, we need to add the URL the button will go to. At the moment, that's another placeholder ([strNextExURL]). Change it to this: |
| 8. |
Now your code should look like this: |
| 9. |
Save the file, then create an exercise in JQuiz and view it in your browser. Here's an example. |