Virtual Mechanics: Support    Virtual Mechanics: User Forums and FAQs    Virtual Mechanics: User Forums and FAQs  Hop To Forum Categories  Working with Code    Can I add code above or below the regular HTML code

Moderators: Derry, Goldie, Harpo
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
VM Staff
Picture of Harpo
Posted
Create a generic code with geometry name of 'TOPMOST'. The Code object will be visble in work area but contents will be placed before all other code in publish or preview. 'No CSS' option has no effect since CSS is not applicable

If you use the name BOTTOMMOST or BELOWBODY instead, the code will be placed below all other code or below the </body> tag, respectively.

These names must always be in captial letters.

Keep in mind that the geometry name is not the same as the Object name. You can edit a code object's geometry name in the code editor's 'name' text box. (in the code editor's toolbar)

You can create more than one of any of the above catagories by adding to the name. For example, if you need two TOPMOST code objects, call one 'TOPMOST' and the other 'TOPMOSTtwo' or 'TOPMOSTother'. As long as the name begins with the keyword TOPMOST it will be placed in the topmost position.

If you have two of the same catagory, on the same page, they will be added in their respective z-order.

This technique will work for SVG mode as well.

This message has been edited. Last edited by: Harpo,
 
Posts: 3074 | Registered: January 08, 2003Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

Virtual Mechanics: Support    Virtual Mechanics: User Forums and FAQs    Virtual Mechanics: User Forums and FAQs  Hop To Forum Categories  Working with Code    Can I add code above or below the regular HTML code

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