help - assigning different banners to pages

Highlighted
Shopify Partner
49 0 1

Hi folks,
I need some help here - I want to call out different flash banners on different pages on my site on the theme layout and it's not yet working out for me.
this is my code:

     <div id="banner" align="center" style="top:200px" valign="bottom" height="360" style="z-index:10; position:absolute">
{% if page.title == 'Venus' or'UR' %} 
     <object type="application/x-shockwave-flash" data={{"banner1.swf" | asset_url |}} 
width="967" height="248"><param name="movie" value="{{"banner1.swf" | asset_url |}}" /><param name="wmode" value="transparent"></object>
{% endif %}

{% if page.title == 'Mercury' %} 
 <object type="application/x-shockwave-flash" data={{"banner2.swf" | asset_url |}} 
width="967" height="248"><param name="movie" value="{{"banner2.swf" | asset_url |}}" /><param name="wmode" value="transparent"></object>
{% endif %}
            </div>

The first condition works fine, but in the second condition, on the "mercury" page, I'm getting 2 banners appearing, one above the other. What did I leave out or how did I use liquid wrongly? I'm not too great with conditions in liquid. I'm sure someone knows the answer to this question (I feel dumb that I can't figure it out myself!) and I would so appreciate being pointed in the right direction!
Thanks for the help!

site: mirtec/myshopify.com

 

0 Likes