whoknowswhat
12-24-2007, 03:20 AM
Hello,
I am looking to make custom html tags for dynamic use, I want to be able to have a custom tag that uses the strong attribute but uses a different name.
For Example
test.html:
<html>
<head>
<script type="text/javascript" src="tags.js"></script>
<script type="text/javascript" src="replacement.js"></script>
<script type="text/javascript" src="replacement2.js"></script>
<script type="text/javascript" src="replacement3.js"></script>
<head>
<body>
<logo1>Test</logo1>
</body>
</html>
replacement is a script I use to generate my fonts with php and javascript, I enter the tag I want to change in there and it does it.
The custom tags work in Fire Fox without a problem, but only the text is shown in IE instead of the images the text generates. It is limiting to cover any tag but strong, and I need 3 different sizes to make the logo, so I then have to use the header tags, and those create extra space in the logo.
So I want a file to tell IE that a tag has the attribute of another, and it will likely no longer degrade in IE
Example Psudo:
tag .logo1="strong"
tag .logo2="strong"
And I would like that in an external javascript.
Any pointers would be appreciated.
If there is another way to do this I am open to suggestions, the script I am using is required to take over a tag to make the swap, so any way I can make a custom tag IE will except will do:D
I am looking to make custom html tags for dynamic use, I want to be able to have a custom tag that uses the strong attribute but uses a different name.
For Example
test.html:
<html>
<head>
<script type="text/javascript" src="tags.js"></script>
<script type="text/javascript" src="replacement.js"></script>
<script type="text/javascript" src="replacement2.js"></script>
<script type="text/javascript" src="replacement3.js"></script>
<head>
<body>
<logo1>Test</logo1>
</body>
</html>
replacement is a script I use to generate my fonts with php and javascript, I enter the tag I want to change in there and it does it.
The custom tags work in Fire Fox without a problem, but only the text is shown in IE instead of the images the text generates. It is limiting to cover any tag but strong, and I need 3 different sizes to make the logo, so I then have to use the header tags, and those create extra space in the logo.
So I want a file to tell IE that a tag has the attribute of another, and it will likely no longer degrade in IE
Example Psudo:
tag .logo1="strong"
tag .logo2="strong"
And I would like that in an external javascript.
Any pointers would be appreciated.
If there is another way to do this I am open to suggestions, the script I am using is required to take over a tag to make the swap, so any way I can make a custom tag IE will except will do:D