Please help me to put a switch button on the toolbar for autoscroll the text contained in the active page. Thanks. (Or two buttons: on/off)
What you are asking for is really over and above what HTML Exec is. HTML Exec is the compiler that will compile your code into an EXE. They included the procedures and functions so we can all learn from them to make our own and not have to reinvent the wheel that is generic for everyone. They are excellent for a starting point.
I would also suggest setting up a production, test and a quick test projects for the following reasons. This means keeping each one in their own set of folders. You can also use the same Publication GUID, if needed, since they are all from the same overall project.
Production is the final project to be distributed.
The test project is to test different areas without changing what you have already tested in production. When complete, copy the completed files to the production project and test again.
Quick test is used to test small pieces of code with HTML Exec. This provides faster compile times and is very useful.
I have included live tests, which you can download examples from the Internet. Make changes and test with your browser without using HTML Exec. Just make sure you get all the files that are needed as some will let you view the source code and copy it and some have ZIP files you can download. You may also need external JS and CSS files if viewing the source code and copying.
A lot of examples, include code for different browsers. A lot of this code can be removed for other browsers, FireFox, Chrome, etc.
I hope this helps you.
Thanks for your help, but that solution that you give to me, is not that I want, because I have a lot of pages in my ebook, and I want a button for automatic scroll in the toolbar that can be useful in all of my pages. The function that I want, is similar to the function that permit zoom in and zoom out the text in every page, and that we can use from the toolbar.
Please, explain me how to insert the automatic scroll from the toolbar, not on every single page, if is possible.
What you are basically asking for is impossible.
When you compare zoom in and zoom out along with auto scrolling text, you are talking apples and oranges. The zoom in and zoom out affects the entire screen, not some portion of it. Yes, you can auto scroll the entire window, but I don’t think that is what you want and besides, that will take some coding too. See example 1, below.
Here are some examples.
http://www.brownielocks.com/autoscroll1.html This will autoscroll the entire window. The code is at the bottom of the page. Click on the link for scollable text over a fixed background.
http://davidwalsh.name/smooth-scroll-mootools This is using an external JS file. It shows how to quickly jump between areas on the same page, using the Moo Tools Library and smooth scrolling.
http://www.webidsupport.com/forums/showthread.php?2162-AutoScroll-DIV-script&s=03b677b33ae02f70e1437724a4a66f68 This is the source code that will autoscroll a DIV element.
There are so many possible ways to setup an autoscroll function, it would be impossible to have them all in one function. What element do you want scrolled, with or without scroll bars, what speed or variable speed, etc?
The easiest way, is to get one working for one of your pages and then copy paste what is needed for the rest of your pages. To minimize the code, I would look at the possibility of using an external JS file.
Since, I have not tried this, Tech Support can comment on the 3rd paragraph for accuracy for setting this up in the toolbar, above.
I hope you can help me. Thanks a lot.
*[size=4]<!-- TWO STEPS TO INSTALL PAGE SCROLLER:
- Copy the coding into the HEAD of your HTML document
- Add the last code into the BODY of your HTML document -->
I don’t think it is possible to move the body portion to the usermain file. Your mouse triggers are located in the body and without something to trigger the code, it would not work. If you add your displayable portion to the area, indicated below, everything will work fine.
[quote=“HawkeyeTX”]**Put your displayable code here.**
If you want to experiment, you might be able to move all or part of the head section to a JS file and test. I would leave the body portion in tact.
Thank you very much. I thank your help. I already put into external css and js files the head portion, and copy it with the up and down gif icons in the same folder that my files, and write the body portion in the correct place in each file, and everything works fine. Thanks.
Glad I could help.
This topic was automatically closed after 24 hours. New replies are no longer allowed.