[CODE]document.getElementById(‘userlinks’).style.display = “none”;
qx = document.getElementById(‘userlinks’).innerHTML;
document.getElementById(‘usercontrols’).innerHTML = qx;
It’s currently putting all the data in the un-editable #userlinks field into a new ID class, which I re-apply to my forums using a <div> tag. This is all working fine, however, I would like a different effect.
I would like to have the code take the information in the first <td> tag, and place that into one new variable, then have another variable take the information from the second <td> tag. That way I can have the two sections separate!
Here’s the block HTML:
[code=html]<table width=”100%” id=”userlinks” cellspacing=”6″>
<tr>
<td><strong>Logged in as: <a href=’http://z11.invisionfree.com/GreytekIV2/index.php?showuser=1′>Shifty</a></strong> ( <a href=’http://z11.invisionfree.com/GreytekIV2/index.php?act=Login&CODE=03′>Log Out</a> · <b><a href=’http://z11.invisionfree.com/GreytekIV2/admin.php’ target=’_blank’>Admin CP</a></b> · <b><a href=’http://z11.invisionfree.com/GreytekIV2/index.php?act=modcp&forum=’>Mod CP</a></b> )</td>
<td align=’right’>
<b><a href=’http://z11.invisionfree.com/GreytekIV2/index.php?act=UserCP&CODE=00′ title=’Edit my settings, such as signature, avatar and more…’>My Controls</a></b> · <a href=’http://z11.invisionfree.com/GreytekIV2/index.php?act=Msg&CODE=01′>Inbox (0)</a>
· <a href=’http://z11.invisionfree.com/GreytekIV2/index.php?act=Search&CODE=getnew’>View New Posts</a> · <a href=’javascript:buddy_pop();’ title=’View posts since your last visit, moderator lists and more…’>My Assistant</a></td>
</tr>
</table>
I cannot seem to figure out how to do this myself. If you could assist me, I’d be very, very grateful!