This is propably very simple, but I'm a complete newbie and need your expert advice.
I'm working in Dreamweaver and using templates. This has the limitation, that the only thing editable in the <head> section of the document.
In my <head> section I have an Image Preload script that is supposed to preload images related to the page you view, but since the head section is not editable due to the above mentioned template, I can't specify different images on different pages. :-(
So now I'm thinking "workaround".
connect to a MySQL database and hit a table that contains the name of the page (i.e. index.php) and the arrays of images.
i.e.
Page Images
index.php img1, img2, img3
about.php img4, img5
...
Load the array relevant to the page into a variable in the script, and call the preload function with the arrayvariable name, that way getting the array for the index-page on index.php and the array for the about-page on about.php
Is this possible - a bad way - any better ideas - how to do it ??
Any help appreciated.