Blueheaven
04-03-2005, 06:44 AM
Suppose on a few hundred pages, I had <div id="ad"></div>
Then on the style sheet I had
#ad {
<script lañguage="javascript">
etc etc
//</script>
Is it possible to make this work, and if not how could I manage this?
RareBeast
04-03-2005, 09:12 AM
Heya,
I don't believe you can include script like that? I could be wrong, but if it was me I'd be using <?php include("page.whatever"); ?>!
Kind regards,
James
You can't put javascript in a CSS stylesheet.
I suppose you don't want to edit those few hundred pages, but it would've been better if there was some sort of include or call to the script in the actual HTML.
You could try and do a search & replace on all the files. There might be some scripts out there (maybe written in PHP) which will search and replace to insert the javascript into each file without much hassle.
Blueheaven
04-03-2005, 04:58 PM
Well Its part of a database, and the pages are seperated from the rest of the sql files.
So I'll probably just add <div id="ad"> to every page
and Insert the ads inside every <div id using a text editor.
At least that way I can position the div using css