Hi - I have this really nice piece of code which creates dynamic Flash titles on my blog. However, I'd like to hard-code a few Flash titles on one of my page templates, rather than use the dynamic text. I'm a coding amateur, so which variables in the below code should I change to hard-code the title? <div class="post" id="post-<?php the_ID(); ?>"> <div class="storytitle"> <div class="title" id="flash-<?php the_ID(); ?>"> <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a> </div> <script type="text/javascript"> // <![CDATA[ var so = new SWFObject("<?php bloginfo('template_directory'); ?>/title.swf", "flash-<?php the_ID(); ?>", "240", "240", "8", "#ffffff"); so.addVariable("titletext", "<?php the_title(); ?>"); so.addVariable("permalink", "<?php the_permalink() ?>"); so.write("flash-<?php the_ID(); ?>"); // ]]> </script> </div> Code (markup):
so.addVariable("titletext", "<?php the_title(); ?>"); Change to: so.addVariable("titletext", "My Static Title"); on the pages that you want the title to be static, just change the text to whatever you want...
Yeah, I tried that, but it wouldn't let me add more than one title to the page. So I created images for the titles instead of using flash