PDA

View Full Version : php photo album



yaniv
08-09-2007, 04:44 PM
hi
im using the php photo album and it works great!
http://www.dynamicdrive.com/dynamicindex4/php-photoalbum.htm
but i can not get the links that lead to next photo batch to work...

i mean it shows page1, page2, page3 etc but it doesnt indicates what page im in...

i change the css, where the a.current to font-weight: bold;

but it doesnt take any effect..

have you got any idea how should i make this? i mean, to indicates what page im on...

thank you

Yaniv

jscheuer1
08-09-2007, 06:31 PM
Please post a link to the page on your site that contains the problematic script so we can check it out.

yaniv
08-09-2007, 06:37 PM
thanks for your replay!
here you go:

http://www.magendo.net/spgm/gal/ring/no_stone/

and here is the css: (i put it in a css file)

.slideshow{ /*CSS for DIV containing each image*/
float: left;
margin-right: 0px;
margin-bottom: 5px;
margin-left: 13px;
}

.slideshow img{ /*CSS for each image tag*/
border: 1px solid #781351;
width: 70px;
height: 46px;
}

#navlinks{ /*CSS for DIV containing the navigational links*/
width: 400px;
float: left;
direction: rtl;
}

#navlinks a{ /*CSS for each navigational link*/
margin-right: 8px;
margin-bottom: 3px;
margin-top: 0px;
padding-top: 0px;
font-size: 110%;
}

#navlinks a:visited{ /*CSS for currently selected navigational link*/

color: #fa894d;
text-decoration: none;
font-family: arial;
font-size: 14px;
font-weight: normal;
}

#navlinks a.current{ /*CSS for currently selected navigational link*/

color: #fa894d;
text-decoration: none;
font-family: arial;
font-size: 16px;
font-weight: bold;
}

jscheuer1
08-09-2007, 07:30 PM
It actually works in the Opera browser, although the rest of your page looks a mess in it. IE is much more prone toward letting styles assigned to other a tags by other selectors affect each other. It generally is inclusive and in a mood to generalize, rather than exclusive and in a mood to be specific, when assigning these styles. The .current pseudo classes may need to be defined to distinguish them from other a tag pseudo classes in your stylesheet:


#navlinks a.current, #navlinks a.current:link, #navlinks a.current:active, #navlinks a.current:visited, #navlinks a.current:hover { /*CSS for currently selected navigational link*/

color: #fa894d;
text-decoration: none;
font-family: arial;
font-size: 16px;
font-weight: bold;
}

If that doesn't take care of it, you have so many other styles on the page that have an affect upon the a tag under various circumstances. One or more of those is in conflict in IE. It would be a trial and error matter at that point, removing all other selectors with a in them, one at a time, until the culprit is found, and then finding a way around the conflict.

yaniv
08-10-2007, 10:21 PM
it works man, thank you very much!!!

what do you mean my page looks a mess?

jscheuer1
08-11-2007, 04:41 AM
it works man, thank you very much!!!

Happy to be of assistance.


what do you mean my page looks a mess?

In the Opera browser. It never hurts to test your page in Opera and/or FireFox in addition to IE, both of these (Opera and FF) looked pretty poor. Here is a 50% size compressed Opera screenshot (click the below thumbnail to view it):

1165

yaniv
08-11-2007, 05:51 PM
it is a mess....

what do you suggest form me to do to fix it?

thank you again

Yaniv