Thread: jQuery Why am I such a noob?
View Single Post
Old 09-22-2012, 02:56 PM   PM User | #1
nolvorite
Regular Coder

 
nolvorite's Avatar
 
Join Date: Dec 2006
Posts: 170
Thanks: 7
Thanked 0 Times in 0 Posts
nolvorite is an unknown quantity at this point
Why am I such a noob?

I have no idea why this line of code isn't working--
http://vanishingpoint.b1.jcink.com/i...p?showtopic=14 (not advertising here lol)

I want to give .tableborder the id topictext for that page but it doesn't seem to be working
I can't edit the html template because it's a sad free forum host l0l

anywho this is the line of code that doesn't work
if it works the entire .tableborder shouldnt show because I had it set to display:none in my css
Code:
$("div.tableborder").hasClass("postlinksbar").attr("id","topictext");
the entire script
Code:
<script type="text/javascript">
if($("#userlinks td:contains('Welcome Guest')").length>0){
$("#userlinks td:contains('Welcome Guest')").wrapInner("<div id='lag1'></div>").html($("#userlinks td:contains('Welcome Guest')").html().replace(/Guest/, '<span class="guestbx">Guest</span>'));
}
$("div#lag1").insertBefore("#logostrip");
$("#navstrip").html($("#navstrip").html().replace(/&nbsp;/, '')).html($("#navstrip").html().replace(/Log In/, "<div id='navtext'>Login</div>"));
$("#menux a:last").attr("id","sadfix");
$("div#navstrip a:first-child").attr("id","original");
$("#menux a:last").hover(
function()
{$("div#stupidpad").css("background-image","url('http://vanishingpoint.b1.jcink.com/uploads/vanishingpoint//23125i.png')");}
,function()
{$("div#stupidpad").css("background-image","url('http://vanishingpoint.b1.jcink.com/uploads/vanishingpoint//23125g.png')");}
);
$("table").removeAttr("cellpadding").removeAttr("cellspacing").removeattr("border");
$("td.row2[nowrap]").addClass("postinfo");
$("div.tableborder").hasClass("postlinksbar").attr("id","topictext");
</script>
__________________
http://stereo.wired.x10.mx/cloud/The...loudmixsig.png
the cloud soup. opened July 15 -- like on facebok /////////////// like on twiter
nolvorite is offline   Reply With Quote