Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is this Frontpage rubbish or a scripting language 1

Status
Not open for further replies.

DaRNCaT

Technical User
Dec 18, 2002
566
0
0
NZ
I'm reworking a website- it's been designed in frontpage, so I'm removing all the crappy tags and cleaning it up, and came across this
Code:
<!--[if gte vml 1]><v:oval id="_x0000_s1027"
 alt="" style='position:absolute;left:782.25pt;top:747pt;width:136.5pt;
 height:66pt;z-index:1' fillcolor="red" stroked="f">
 <v:textbox>
<table cellspacing="0" cellpadding="0" width="100%" height="100%" id="table2">
	<tr>
		<td align="center"><b><font face="Rockwell" color="#FFFFFF">Easy Payment 
		Plan available</font></b></td>
	</tr>
</table>
 </v:textbox>
</v:oval><![endif]--><![if !vml]><span style='mso-ignore:vglayout;position:
absolute;z-index:1;left:1043px;top:996px;width:186px;height:92px'><img
width=186 height=92 src="products_files/image001.gif" v:shapes="_x0000_s1027"></span><![endif]>

Now can anyone tell me if this is more frontpage rubbish, or if it is some obscure lanuage, and I should leave it alone.

cheers,

----------------------------------------
Sometimes, when my code just won't behave, I take it outside and make it listen to britney spears music, and when it comes back it's really well behaved. I wonder if it's suffering from post tramatic stress syndrome now..
 
Brilliant! Thanks for the speedy reply - having never used Frontpage, I wasn't entirly sure I could just trash it, gald to know it's not some obscure language thrown in just to confuse me :D

----------------------------------------
Sometimes, when my code just won't behave, I take it outside and make it listen to britney spears music, and when it comes back it's really well behaved. I wonder if it's suffering from post tramatic stress syndrome now..
 
I think it's VML - a markup language for vector graphics - wrapped up in some conditional comments so only (IE) browsers that understand it will render it. Breaking it down...

[tt]<!--[if gte vml 1]>[/tt] Only do the next bit if you're an IE browser and understand VML (other browsers will treat all of this as a comment anyway)

[tt]<v:eek:val id="_x0000_s1027" ...[/tt] Next, some VML (and HTML) defining some text on a red oval

[tt]...</v:eek:val><![endif]-->[/tt] The end of the VML, and the end of the comment.

[tt]<![if !vml]>[/tt] Another conditional statement, for IE's that don't speak VML. Other browsers will ignore this as an invalid tag.

[tt]<span style=...[/tt] An image wrapped in a span that (presumably) looks the same as the VML above. Any browser should understand this.

[tt]...</span><![endif]>[/tt] End of te span, and end of the "if" (for IE's that notice such things.


So the bottom line - can you trash it? Yes, if you want to, you could remove the VML stuff and the conditional comments and just use the span+image. Alternatively (and maybe better) you could create a new red oval background image and overlay text onto it. I think that's what I'd do.

You could also try running your page through - it has settings to remove some of the MS-Word-generated rubbish from a page.

-- Chris Hunt
Webmaster & Tragedian
Extra Connections Ltd
 
It's Micro-speak. Trash it.

**Quiquid latine dictum sit altum viditur.**
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top