Luis Grolez
Jul 6th 2008, 6:26 pm
Hi,
I would like to make my IF STATEMENT to look for a Class name in the HTML called "breadcrumb" instead of looking for the Title Name of the page.
This is the code a was up to:
<script type="text/javascript">
if (document.title == "Rugs"){
document.getElementById('content').className='template-list';
} else {
document.getElementById('content').className='template-details';
}
</script>
Thanks.
I would like to make my IF STATEMENT to look for a Class name in the HTML called "breadcrumb" instead of looking for the Title Name of the page.
This is the code a was up to:
<script type="text/javascript">
if (document.title == "Rugs"){
document.getElementById('content').className='template-list';
} else {
document.getElementById('content').className='template-details';
}
</script>
Thanks.