If there are .pdf files on the page, then the message in the <p> should be added immediately before the end of the #mainontent div as the last paragraph of the <p>
For example, is this the default html?
<div id="maincontent"> <ul class="cheat_sheet_downloads"> <li><a href="http://www.addedbytes.com/download/css-cheat-sheet-v2.pdf">PDF, 316Kb</a></li> <li><a href="http://www.addedbytes.com/download/css-cheat-sheet-v3.pdf/">PNG, 77Kb</a></li> </ul> <div>
After detecting pdf
he should be like that
<div id="maincontent"> <ul class="cheat_sheet_downloads"> <li><a href="http://www.addedbytes.com/download/css-cheat-sheet-v2.pdf/">PDF, 316Kb</a></li> <li><a href="http://www.addedbytes.com/download/css-cheat-sheet-v3.pdf/">PNG, 77Kb</a></li> </ul> <div> <div id="ttip"> Most computers will open PDF documents automatically, but you may need to download <a title="Link to Adobe website - opens in a new window" href="http://www.adobe.com/products/acrobat/readstep2.html" target="_blank"> Adobe Reader</a>. </div>
or like another div after the #maincontent div. Is it possible using jquery?
Edit:
A page can have one or more PDFs that I want to add to the bottom of the message. and I also need compatibility with IE 6
Edit 2: I cannot and do not want to use the mouse over the tooltip
source share