PDA

View Full Version : can anyone answer this simple question?




jon Gotty
Aug 21, 2006, 05:46 PM
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!
Aug 22, 2006, 12:00 PM
Umm.. aren't the rollovers done in Javascript? Just make sure the file with the JS is uploaded.

Moria
Aug 22, 2006, 12:19 PM
Dreamweaver has something for image rollovers built in. Look through the menu's at the top. I can't remember which one it's in though.

ChicoWeb
Aug 22, 2006, 10:09 PM
Insert > Image Rollover

Or, Insert > Image Objects > Rolloever Image...

I forget which ver. of DW is which.

jon Gotty
Aug 24, 2006, 05:59 PM
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
Aug 24, 2006, 07:16 PM
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 include 'navbar.php' ?>

and save all your files as .php files for example 'index.php'.

zosont
Aug 25, 2006, 08:31 AM
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 (http://en.wikipedia.org/wiki/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
Aug 25, 2006, 08:41 AM
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 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 include('navbar.php'); ?>

Mr. Mister
Aug 25, 2006, 10:52 AM
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
Aug 25, 2006, 11:22 AM
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
Aug 25, 2006, 11:51 AM
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 include('navbar.php'); ?>

oh yeah didn't notice that, thanks for correcting my error

eto
Sep 9, 2006, 10:14 PM
You don't need to use PHP to have a consistent nav bar. Just investigate how to use templates with DW.



or use css :)