Random Quote generator

All WYSIWYG Web Builder support issues that are not covered in the forums below.
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
Post Reply
alan_sh
 
 
Posts: 1830
Joined: Tue Jan 01, 2019 5:50 pm

Random Quote generator

Post by alan_sh »

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
lummis
 
 
Posts: 222
Joined: Sun Apr 24, 2011 9:18 am
Location: UK

Re: Random Quote generator

Post by lummis »

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
User avatar
Pablo
 
Posts: 23239
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Random Quote generator

Post by Pablo »

You can use the JavaScript editor to customize the scripts.

https://www.wysiwygwebbuilder.com/free_extras.html
lummis
 
 
Posts: 222
Joined: Sun Apr 24, 2011 9:18 am
Location: UK

Re: Random Quote generator

Post by lummis »

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
First copy the file 'js.dat' from the C:\Program Folder\WYSIWYG Web Builder 8\ folder to My Documents\WYSIYWG Web Builder\system\
I am using Windows 10 and for that it should be
First copy the file 'js.dat' from the C:\Program Files\WYSIWYG Web Builder **\ folder to Documents\WYSIYWG Web Builder\system\
Further down it instructs
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
User avatar
Pablo
 
Posts: 23239
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Random Quote generator

Post by Pablo »

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".
lummis
 
 
Posts: 222
Joined: Sun Apr 24, 2011 9:18 am
Location: UK

Re: Random Quote generator

Post by lummis »

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
Post Reply