![]() |
Conditional comments for swfobject instances Hello, I have created 3 areas for banner ads, div#topBanner, div#bottomBanner and div#sideBanner. They are all applied to the appropriate page templates. In the customization for HEADERINCLUDE i have included the jquery, swfobject.js links and the javascript tags for including the banners in the appropriate place. My question is should/how do I conditionally comment each one out using an if statement, the pages that only have div#topBanner dont need the call to place the swf fine in div#sideBanner as it doesn't exist on some pages. Is this even an issue? I just like clean code and it seems bad to me to have the unnecessary js calls on pages that dont need them. Thanks, Kane Leins |
الساعة الآن 07:32 AM |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.2 TranZ By
Almuhajir