Im trying to add an additional condition to some javascript in my header. Here's a link to the site: http://stillpicturesinmotion.com/archangel/?cat=1
I'm using 2 flash headers (still working on the navigational hover). One is for the "blog" portion of the site and the other is for the products portion (found here: http://stillpicturesinmotion.com/arc...&products_id=1 )
In order to accomplish this I used the following js code along with the Nice 'n EZ flash module. Here is the js:
It works fine, except for when I click on the "blog" portion header links. These display the product header. I was wondering if anyone knew how to add another condition to the previous code.Code:<?php if(isset($_GET['cat'])) { switch((int)$_GET['cat']) { case 1: //change out WP header echo get_flashed('header','900','328'); break; default: //default echo get_flashed('header','900','328'); break; } } else echo get_flashed('header_2','900','146'); ?>
Example:
Cheers!Code:<?php if(isset($_GET['cat','p'])) { switch((int)$_GET['cat','p']) { case 1: //change out WP header echo get_flashed('header','900','328'); break; default: //default echo get_flashed('header','900','328'); break; } } else echo get_flashed('header_2','900','146'); ?>



