Virtual Mechanics: Community Forums and FAQs
Virtual Mechanics: Community Forums and FAQs
WebDwarf, SiteSpinner, SiteSpinner Pro 'How do I...'
onLoad event in the body tag|
Go
![]() |
New
![]() |
Find
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
|
Junior Mechanic |
I would like to add an onLoad event to the body tag. Like this <BODY onLoad="clock()">
How is this accomplishedwith Site Spinner V2? Thanks |
||
|
VM Staff![]() |
Hello Dano,
There is no way to edit the Body tag at the present time. You can add code directly above or below, or add code to the Header section. - Derry |
|||
|
|
Honorary Mechanic |
Is it still this way? |
|||
|
|
Honorary 'Aussie' Mechanic |
You can place the line
<body onload="clock();" > Into a code object, in body, and it will still work. |
|||
|
|
Honorary Mechanic |
Does not work inserting this in code object - onload="startmotor(0)" - WRONG i'm wrong i just double checked now sorry |
|||
|
|
Honorary 'Aussie' Mechanic |
You have forgotten the semicolon and the opening and closing < > Try <onload="startmotor(0);"> |
|||
|
|
Honorary Mechanic |
Invalid HTML ?
|
|||
|
|
Guru 'Geezer' Mechanic |
Since you want the onload event to fire before the body is displayed, it would be best if the statement was inside a custom header (this ensures maximum browser compatibility).
<body onload="startmotor(0);" >You can place this anywhere inside the page's custom header. |
|||
|
| Powered by Eve Community |
| Please Wait. Your request is being processed... |
|

