In the ready-to-use java scripts, there's a random quote generator which can do up to 10 quotes. Is there a way to extend that to more than 10?
Or is there something else I can use to achieve the same effect?
Cheers
Alan
Random Quote generator
Forum rules
IMPORTANT NOTE!!
DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
IMPORTANT NOTE!!
DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Re: Random Quote generator
Good question Alan. I have been wanting to do something similar for sometime with many more than the 10 in the standard Javascript. Looking at the HTML it would seem that all you need is the ability to increase the number of quotes in the array by asking the number required, but I guess that no one has asked in the past.
Brian
Brian
Re: Random Quote generator
You can use the JavaScript editor to customize the scripts.
https://www.wysiwygwebbuilder.com/free_extras.html
https://www.wysiwygwebbuilder.com/free_extras.html
Re: Random Quote generator
Many thanks for the link, Pablo, and I have today downloaded the JavaScript editor and also upgraded to version 20 to bring me up to date.
The text instructions with JavaScript Edit are a bit old as they refer to version 8 so could do with a bit of updating to the installation instructions. The current wording is
However when I did that and opened the JavaScript Edit application it didn't display the available javascripts and the only way I found I could do that was to place the 'js.dat' file into the same folder as the JavaScript Edit Application. I could then edit the Random Quote javascript but the down side was that it didn't add the additional Quotes when tested in WYSIWYG 20. To make them visible I then had to transfer back the 'js.dat' file to the system folder. I am sure that it should not work that way, so have I overlooked doing something else? I have read through the instructions a number of times and I can't see that I have missed anything.
Can you help please.
Brian
The text instructions with JavaScript Edit are a bit old as they refer to version 8 so could do with a bit of updating to the installation instructions. The current wording is
I am using Windows 10 and for that it should beFirst copy the file 'js.dat' from the C:\Program Folder\WYSIWYG Web Builder 8\ folder to My Documents\WYSIYWG Web Builder\system\
Further down it instructsFirst copy the file 'js.dat' from the C:\Program Files\WYSIWYG Web Builder **\ folder to Documents\WYSIYWG Web Builder\system\
Next unzip the JScriptEdit.exe into the same folder as js.dat.
However when I did that and opened the JavaScript Edit application it didn't display the available javascripts and the only way I found I could do that was to place the 'js.dat' file into the same folder as the JavaScript Edit Application. I could then edit the Random Quote javascript but the down side was that it didn't add the additional Quotes when tested in WYSIWYG 20. To make them visible I then had to transfer back the 'js.dat' file to the system folder. I am sure that it should not work that way, so have I overlooked doing something else? I have read through the instructions a number of times and I can't see that I have missed anything.
Can you help please.
Brian
Re: Random Quote generator
Step 1
Place js.dat in the system folder
Step 2
Copy JScriptEdit.exe to the system folder
Then run jsedit to edit the script.
Note that there is no support on this free tool. It is provided "AS IS".
Place js.dat in the system folder
Step 2
Copy JScriptEdit.exe to the system folder
Then run jsedit to edit the script.
Note that there is no support on this free tool. It is provided "AS IS".
Re: Random Quote generator
Thanks Pablo - it now makes sense. I read the instructions as extracting all the files I had downloaded, which created a folder in the system folder, instead of placing the .exe file in the system folder.
Think I was looking at it too long to see what I had done wrong.
Brian
Think I was looking at it too long to see what I had done wrong.
Brian