This is a really silly one, but I'm getting stuck - can anyone point out the mistake?
I have the following code:
which should print out something like:Code:print "<class=\"navItem_$num_commas\"><img src=\"images/folder_closed.gif\"><a href=\"#\" onclick=\"amend($idL2,'Side')\">$TitleL2</a></class>";
It doesn't however... it prints the same, but when closing the class tag, it prints </class="navItem_0"> - eg:Code:<class="navItem_0"><img src="images/folder_closed.gif"><a href="#" onclick="amend(2,'Side')">Home</a></class>
And thus the class doesn't seem to actually work in any way (ie it doesn't refer to the file's CSS). What's going wrong?Code:<class="navItem_0"><img src="images/folder_closed.gif"><a href="#" onclick="amend(2,'Side')">Home</a></class="navItem_0">
Thanks again!


Reply With Quote
Bookmarks