Moderators: Derry, Goldie, Harpo
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Junior Mechanic
Posted
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
 
Posts: 1 | Registered: November 22, 2004Reply With QuoteEdit or Delete MessageReport This Post
VM Staff
Picture of Derry
Posted Hide Post
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
 
Posts: 4167 | Location: Toronto, Canada | Registered: January 08, 2003Reply With QuoteEdit or Delete MessageReport This Post
Honorary Mechanic
Posted Hide Post
quote:
Originally posted by Derry:
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.
Is it still this way?
 
Posts: 339 | Registered: December 19, 2007Reply With QuoteEdit or Delete MessageReport This Post
Honorary 'Aussie' Mechanic
Picture of postyr
Posted Hide Post
You can place the line
 <body onload="clock();" >

Into a code object, in body, and it will still work.
 
Posts: 1159 | Location: Australia | Registered: April 17, 2007Reply With QuoteEdit or Delete MessageReport This Post
Honorary Mechanic
Posted Hide Post
quote:
Originally posted by postyr:
You can place the line
 <body onload="clock();" >

Into a code object, in body, and it will still work.
Does not work inserting this in code object - onload="startmotor(0)" -

WRONG i'm wrong i just double checked now sorry
 
Posts: 339 | Registered: December 19, 2007Reply With QuoteEdit or Delete MessageReport This Post
Honorary 'Aussie' Mechanic
Picture of postyr
Posted Hide Post
quote:
onload="startmotor(0)"


You have forgotten the semicolon and the opening and closing < >

Try
<onload="startmotor(0);">
 
Posts: 1159 | Location: Australia | Registered: April 17, 2007Reply With QuoteEdit or Delete MessageReport This Post
Honorary Mechanic
Posted Hide Post
Invalid HTML ?
 
Posts: 339 | Registered: December 19, 2007Reply With QuoteEdit or Delete MessageReport This Post
Guru 'Geezer' Mechanic
Picture of larryd
Posted Hide Post
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.
 
Posts: 5125 | Registered: December 03, 2006Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 


™ & © 1998 - 2008, Virtual Mechanics Inc. All rights reserved.