Click to See Complete Forum and Search --> : What is {id=rid}


austinproject
10-27-2003, 11:14 PM
Please help me find out what these tags do with this modifier (id=rid). I have been doing HTML and Flash for a while and have never seen this. I found it when I was modifying an HTML page in my Outlook Stationaries.

title id="ridTitle" body id="ridBody" img id="ridImg" src

Thank You, Mitch

simpson97
10-28-2003, 01:26 AM
Hope this usage example in javascript helps.

<script language='javascript'>
function init () {
document.getElementById.('mydiv').style.backgroundColor="ffcc99";
}
window.onload = init;
</script>

<div id='mydiv'>
This is my div
</div>

Bob

austinproject
10-28-2003, 02:32 AM
Thanks. It still remains a mystery to me. I thought {id=ridX} could be a new tag for HTML, but I see from your post that they must be pointing to some Java CAB in Windows somewhere.

This is the whole document below. It is a 'common file' that comes with Windows98 and/or Outlook. I have made many 'stationary' files without this code and they have always worked just fine.

Oh well, thanks for the tip.

<!--
<html><head><title id="ridTitle">Sunflower</title> <style><!-- body { font-family: Arial, Helvetica; font-size: 12pt; color: #666600; margin-top: 25px; margin-left: 20px; } img { margin-top: 10px; margin-left: -20px; } --></style> </head> <body id="ridBody" background="Sunflower Bkgrd.jpg"><img id="ridImg" src=sunbannA.gif align=bottom><p></p> <SPAN id="_AthCaret"></SPAN>
<p></p> </body> </html> -->

AdamGundry
10-28-2003, 02:43 AM
The "id" attribute is a standard HTML attribute that allows you to assign a unique identifier to the element. You can then refer to the element using Javascript or CSS. In the document you have shown, the IDs are not used, but they may be referenced elsewhere.

For more information, see the HTML 4.01 Specification: http://www.w3.org/TR/html401/struct/global.html#h-7.5.2

Adam