where would i put something that...
plastikman
Joined: 2002-09-17
Posts: 39 |
Posted: Wed, 2002-11-06 04:44 |
where would i put something that goes right before the </body> tag in an original html page? would that be in the wrapper.footer? |
|
Posts: 3474
Not in wrapper footer... that's for code that decides whether Gallery is embedded (say, in *Nuke). You want to put the code in each of the other footer files: album, gallery, photo, search, slideshow. You could add a <?php include("...") ?> line to each of these so you'd only have to edit one file to change something.
Posts: 39
but i want the code to be used at the top of each page...but for some reason javascript codes wont work...im always getting syntax errors on my page
because what i want to do is have a dhtml nav bar at the top of the page and one of the extention files goes right before the </body> tag in an original html document and the other one goes in the <head> tag but ive gotten that one to work :grin:
the dhtml nav bar by the way looks like this <!-- BBCode Start --><A HREF="http://www.anime-portfolio.com/frames.html" TARGET="_blank">here</A><!-- BBCode End --> does this change anything to the answer you gave me or do i still put the code in the files you told me? thanks!
Posts: 3474
You can put your <style> tags in the css/standalone_style.css file. The JavaScript <script> tags should be fine below the body, so just place them right above your code for the nav bar (in those files I mentioned before) and all should work fine. As far as I recall, the placement of your JavaScript code in the page is not critical.
What syntax errors are you getting? Can you provide the link to the broken page?
-Beckett (beck@beckettmw.com)
Posts: 39
my error says
line:2
char:1
error:syntax error
code:0
URL:<!-- BBCode Start --><A HREF="http://www.anime-portfolio.com/gallery/album01" TARGET="_blank">http://www.anime-portfolio.com/gallery/album01</A><!-- BBCode End -->
this encloses the link and the syntax error...and ive done everything that you told me to do :sad:
Posts: 39
ok...it seems that i got the ending code right before the </body> tag where its suppose to be...now the only trouble that im having is getting the right code in <head> tag...where would i plop that in at for it to work? because i tried putting it in the "standalone css" folder but when i view source on the page its not reading the code i put in there...
Posts: 3474
Okay... since it's been a while, and I'm forgetful, please e-mail me the code you're trying to insert (all of the style and javascript declarations, along with the files they're trying to link to), and I'll make an attempt to get them working just in the header files. It's kind of hard to see exactly what you're doing here.
-Beckett (beck@beckettmw.com)