dslreports logo
site
 
    All Forums Hot Topics Gallery
spc

spacer




how-to block ads


Search Topic:
uniqs
773
share rss forum feed

murphyp

join:2012-09-19

Need to add a banner throughout website

I am designing a website that has over a hundred pages and I was asked to add a flash banner throughout the website. I tried changing it the the source code and the CSS but I still can't figure it out. Is there any other way that I can add the banner to all the pages without opening every single page in the website.



howardfine

join:2002-08-09
Saint Louis, MO

Without programming, a CMS or an IDE that does that, no.



tao
Frazzlebats
Premium
join:2000-12-03
Lansing, MI
reply to murphyp

I would love to be able to create a site without opening every page and be able to charge money for doing it.

Maybe you asked the wrong question.



stray

join:2000-01-16
Warren, NJ
reply to murphyp

One possible hack... If there's already some common javascript file that is loaded by every page and your semantic markup allows you to access the exact spot in the DOM where you want to add the banner, then you could edit the common javascript file, add in an onPageLoad() that brings in the banner and inserts it on every web page.
--
V-Rtifacts - When Virtual Reality Was More Than Virtual



ProtusMose
Immortal. Eternal.
Premium
join:2001-10-03
Bellevue, NE
kudos:4
Reviews:
·ooma
reply to murphyp

If it's to be replacing something else, you should be able to do a find/replace in Notepad++ or some other IDE.

Even if it's not replacing something, but it comes after the same code on every page you can just add it.

Find "end of code"
Replace with "End of code + the banner code"
--
Blogsaus "Everyone bows to something. Everyone answers to someone. Wherever your treasure lies, there your heart will be also.

Who do you belong to? " - Andrew Schwab