I have a MySpace site. I'm starting to make DIV layouts, but when I put the code in a textarea, the div's come out in the page. Does anyone know how to not make them appear in the page? I just want them in the textarea so people can copy paste them into their profile. EDIT: This is only a problem in IE. So if you have a solution, make sure it works on all browsers. Thanks.
Try something like this: <textarea name="textarea" rows="5" cols="50"><div>some text</div></textarea> Code (markup):
You probably need something like this: <textarea cols="100" rows="100">!!!!!!!!! Place this in about me !!!!!!!!! <div class="frm1"> <table style="border: 0px none; background:"> <tr style="border: 0px none; background:"> <td style="color: white; border: 0px none; background:"> <table style="height: 0px; border: 0px none; padding: 0px; background:"> <tr style="border: 0px none; background:"> <td style="height: 0px; color: white; border: 0px none; padding: 0px; background:"> <table style="height: 0px; border: 0px none; padding: 0px; background:"> <tr style="border: 0px none; background:"> <td style="visibility: hidden; height: 0px; color: white; border: 0px none; padding: 0px; background:"> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> <p> </p> <p> </div> <div style="position: absolute; left: 261px; top: 131px; width: 502px; height: 480px; overflow: auto; visibility: visible; font-family: verdana; color: 000000; font-size: 9px; background-image: url('http://img50.imageshack.us/img50/6100/underoathwq8.jpg')" align="center"> <div style="position: absolute; left: 313px; top: 27px; width: 154px; height: 342px; overflow: auto; visibility: visible; font-family: verdana; color: 000000; font-size: 9px; background-color: transparent"> <font face="MS Sans Serif" color="#FFFFFF"> <a href="http://collect.myspace.com/index.cfm?fuseaction=invite.addfriend_verify&friendID=38020399"> <font color="#FFFFFF">add</font></a><br> <font color="#FFFFFF"> <a href="http://mail.myspace.com/index.cfm?fuseaction=mail.message&friendID=38020399"> message</font></a></font><font face="MS Sans Serif"><br> </font> <a href="http://www.myspace.com/index.cfm?fuseaction=block.blockUser&userID=91874776&hash=MIGvBgorBgEEAYI3WAPaoIGgMIGdBgorBgEEAYI3WAMBoIGOMIGLAgMCAAECAmYDAgIAwAQIGXHD4JH0THAEECf6D+oY0hC+tgQlI6bv/3oEYDsnaItQbGT3nKk65zCqQzNE/A4uy/0op6EBDVR/zWpjxQJuqzwuCDY"> block</font></a></font><form method="post" action="http://comments.myspace.com/index.cfm?fuseaction=user.ConfirmComment"> <p>comment me or die!<br> <textarea name="f_comments" class="Skem9box" rows="3" cols="16"></textarea><br> <input type="submit" value="Post" class="Skem9sub"></font></p> <input name="friendID" value="38020399" type="hidden"></font> </form> <p>Hi, welcome to the official mydiv.com<br> MySpace. Visit </font> <a href="http://www.mydiv.com"> www.mydiv.com</font></a> for<br> layouts like this one. There's a wide variety<br> of these layouts, all for free! What <br> inspires me to make more? The fact<br> that you guys will spread the word<br> about my site :) That's it.<br> </font></div> <div style="position: absolute; left: 19px; top: 22px; width: 184px; height: 135px; overflow: auto; visibility: visible; font-family: verdana; color: 000000; font-size: 9px; background-color: transparent"> <br> MyDiv.com Official MySpace<br> </font> <a id="ctl00_Main_ctl00_UserBasicInformation1_hlDefaultImage" href="http://viewmorepics.myspace.com/index.cfm?fuseaction=user.viewPicture&friendID=91874776&MyToken=ba699af3-3895-44a0-a62b-4422bc64b836"> <font color="#FFFFFF"> <a id="ctl00_Main_ctl00_UserBasicInformation1_hlDefaultImage" href="http://viewmorepics.myspace.com/index.cfm?fuseaction=user.viewPicture&friendID=38020399&MyToken=ba699af3-3895-44a0-a62b-4422bc64b836"> <img src="http://x.myspace.com/images/no_pic.gif" style="border-width: 0px;"></a></font></a><font color="#FFFFFF"><br> </font> <font face="MS Sans Serif"> <a href="http://viewmorepics.myspace.com/index.cfm?fuseaction=user.viewPicture&friendID=91874776&MyToken=ba699af3-3895-44a0-a62b-4422bc64b836"> view more pics</font></a><br> </font></font></div> </div> <div class="byebye"> <table> <tr> <td> <table> <tr> <td></td> </tr> </table> </td> </tr> </table> </div> <font color="#FFFFFF"> </body> </font> </html> !!!!! PUT THIS IN WHO I'D LIKE TO MEET !!!!!! <Style type="text/css"> table, tr, td {background:transparent;} table table table table, table.contactTable {display:none;} td.text table{visibility:hidden;}.nametext, .whitetext12, .orangetext15 {display:none;}div table td font {display: none;} td.text table table{display:inline;visibility:visible;}table, td{border-width:0px;} .div1 { position:absolute; left:50%; top:200px; width:800px; z-index:1; margin-left:-400px; padding:0px; border:0px; background-color:transparent; height:2000px;} .byebye { display:none; } td.text td.text table table table, td.text td.text table br, td.text td.text table .orangetext15, td.text td.text .redlink, td.text td.text span.btext {display:none;} td.text td.text table {background-color:transparent;} td.text td.text table td, td.text td.text table {height:0;padding:0;border:0;} td.text td.text table table td {padding:3;} td.text td.text table table br {display:inline;} </Style> <div class="byebye"><table><tr><td><table><tr><td> !!!!! PUT THIS IN INTERESTS !!!!!! <Style type="text/css"> body{ background-color:312d27; background-image:url(http://img161.imageshack.us/img161/428/underoathsidehl7.jpg); background-position:Top Left; background-attachment:fixed; background-repeat:no-repeat; } Table, Td{ background-color:transparent; } body, div, p, strong, td, .text, .blacktext10, .blacktext12, a.searchlinkSmall, a.searchlinkSmall:link, a.searchlinkSmall:visited{ color:FFFFFF; font-size:8pt; font-weight:normal; font-style:normal; font-family:Georgia, verdana, arial, sans-serif; } a, a:link, a:visited, a.navbar, a.navbar:link, a.navbar:visited, a.man, a.man:link, a.man:visited, a.redlink, a.redlink:visited{ color:647289; font-size:8pt; font-weight:normal; font-style:normal; font-family:Georgia, verdana, arial, sans-serif; } a:hover, a:active, a.navbar:hover, a.navbar:active, a.man:hover, a.man:active, a.searchlinkSmall:hover, a.searchlinkSmall:active, a.redlink:hover, a.redlink:hover{ font-size:10pt; font-weight:normal; font-style:normal; font-family:Georgia, verdana, arial, sans-serif; } </Style></textarea> Code (markup):
Well thanks, but that's really hard to convert. I know it must be possible, look. http://www.createblog.com/layouts/download.php?id=16734 (not my site)
jemjabella.co.uk/stuff/convert.php - converts to 'friendly' html. Div tags shouldn't show up if they're in textarea codes, but try using the converter (it does what Clive did to your code) and see if that helps.
The formula is pretty simple, Forthe code that goes inside the textarea, you need to use a Find & Replace tool to change all instances of "<" to "<" and ">" to ">".