can anyone answer this simple question?

jon Gotty

macrumors newbie
Original poster
Aug 10, 2006
15
0
i am on dreamweaver mx,
i have uploaded my site,
used drag & drop to add in all my images

BUT HOW DO I ADD MY ROLLOVERS, THE IMAGES (THE ROLLED OVER ONES) ARE LISTED ON THE SIDE BUT HOW DO I ENABLE THEM ON THE DREAMWEAVER SITE, AS DRAG AND DROP DOESNT WORK TO ADD THE ROLLOVERS.


hope u lot can help :confused:
 

crees!

macrumors 68000
Jun 14, 2003
1,922
26
MD/VA/DC
Umm.. aren't the rollovers done in Javascript? Just make sure the file with the JS is uploaded.
 

jon Gotty

macrumors newbie
Original poster
Aug 10, 2006
15
0
thanx

i was told that i need to use php somthin or other to keep my nav bar the same throughout the site

WHAT? please help me u lot i need to know how to keep my nav bar consistant throughout my site.
 

Butters

macrumors 6502
Jan 7, 2006
256
0
UK
put your nav bar in a seperate file called navbar.php, so that if you were to open it in a browser you would only see the bar on it's own.

then anywhere you want that nav bar to appear in your site type this code:
PHP:
<? php include 'navbar.php' ?>
and save all your files as .php files for example 'index.php'.
 

zosont

macrumors newbie
Aug 25, 2006
6
0
jon Gotty said:
i was told that i need to use php somthin or other to keep my nav bar the same throughout the site

WHAT? please help me u lot i need to know how to keep my nav bar consistant throughout my site.
Unless you are using PHP elsewhere then the best way to include a file like this is to use a Server Side Include.
This does rely on your web server having SSI's enabled, and normally requires you to name your files with a .shtml extension rather than .html (simply so the web server does not have to waste time looking for includes in .html files).
 

zosont

macrumors newbie
Aug 25, 2006
6
0
Butters said:
put your nav bar in a seperate file called navbar.php, so that if you were to open it in a browser you would only see the bar on it's own.

then anywhere you want that nav bar to appear in your site type this code:
PHP:
<? php include 'navbar.php' ?>
and save all your files as .php files for example 'index.php'.
You want to get rid of the space between <? and php. I thought you were using short tags for a moment and was going to go on about that, but I see it was a typo. I would always tend to include all the brackets/semicolons etc. myself too, though I know PHP is very flexible on it.
Anyway:
PHP:
<?php include('navbar.php'); ?>
 

Mr. Mister

macrumors 6502
Feb 15, 2006
440
0
And if you think the navbar is essential to your site and don't want the page loading without it if there's some kind of error, use require(); instead of include();
 

dejo

Moderator
Staff member
Sep 2, 2004
15,981
447
The Centennial State
jon Gotty said:
i was told that i need to use php somthin or other to keep my nav bar the same throughout the site

WHAT? please help me u lot i need to know how to keep my nav bar consistant throughout my site.
You don't need to use PHP to have a consistent nav bar. Just investigate how to use templates with DW.
 

Butters

macrumors 6502
Jan 7, 2006
256
0
UK
zosont said:
You want to get rid of the space between <? and php. I thought you were using short tags for a moment and was going to go on about that, but I see it was a typo. I would always tend to include all the brackets/semicolons etc. myself too, though I know PHP is very flexible on it.
Anyway:
PHP:
<?php include('navbar.php'); ?>
oh yeah didn't notice that, thanks for correcting my error