Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

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:
 
Umm.. aren't the rollovers done in Javascript? Just make sure the file with the JS is uploaded.
 
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.
 
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'.
 
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).
 
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'); ?>
 
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();
 
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.
 
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
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.