Virtual Mechanics: Community Forums and FAQs
Virtual Mechanics: Community Forums and FAQs
Report Suspected Bugs
Script Bug|
Go
![]() |
New
![]() |
Find
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
|
Guru 'Geezer' Mechanic |
What triggers SiteSpinner/WebEngine to embed the mouse effects javascript? While doing some trouble-shooting of some of my own scripts, I noticed your script throwing errors in the FireFox error console.
I am not doing any mouse-over effects in my project so I was wondering why the script is being included. Of course, I am now worried about the script errors showing up. I have done a "Clean Components" and the error still occurs. I can not seem to find the steps to recreate the problem (since I don't know what caused the script to be included). If you visit my site using FireFox and have the error console turned on, you will see the errors as you move the mouse over the "Useful Links" frame. Since I primarily use FireFox, these script errors are "quiet". Testing with IE throws up a Runtime Error dialog - not pretty. I am using WebEngine 2.7N. I did not get these errors with 2.7M. Rolled out the N version and reapplied the M vers. Still had the problem. I had a php script loading (I remembered to change the file extension). I took it out, published, and the SS script is no longer part of the page. So I re-added the php script and republished. Still no SS script. So I guess my original question still stands - what criteria is used to embed the SS script in the published file? This message has been edited. Last edited by: larryd, |
||
|
VM Staff![]() |
SiteSpinner should only add the mouseover script if an object on the page has any of the effects listed under the Special FX menu. It adds the popup script if you have an image with the Popup effect.
WebEngine does likewise but also uses the animation script if an action or event is added to an object. You can also override this by choosing a publish format other than automatic in the Project Options You should be able to see what object is being scripted if you look in the code for the page. Something like: initOb(0,2,null,96,1,0,'Oobj2',''); would mean 'obj2' is involved in a mouse effect. For popups search the html for 'vmpopup' to find the object. If you are using WebEngine with animations be sure to use the .js file that is published with the pages. It gets updated from time to time as it did from N to M to fix a couple of bugs (including one that you reported about animation on a centered page) |
|||
|
|
Guru 'Geezer' Mechanic |
Thank you for the information.
I still think you got a small bug though (or maybe call it a feature request), but when using WebEngine and I select the HTML Javascript or HTML DHTML Animation publishing option, it should apply to just the page that requires it rather than the entire project (and all pages). Otherwise, my pages become bloated with code that is unnecessary. |
|||
|
VM Staff![]() |
That is by design. It is a project wide setting like HTML vs SVG.
Remember though that using Automatic mode always chooses the optimal format, adding script only to a page that needs it. I am not convinced of the value of the other options except perhaps for debugging. |
|||
|
|
Guru 'Geezer' Mechanic |
Thanks Harpo. Somehow I had managed to change the project to HTML Javascript instead of HTML Auto. I will try my best from now on to keep it at Auto!
|
|||
|
| Powered by Eve Community |
| Please Wait. Your request is being processed... |
|

