Forum Moderators: open

Message Too Old, No Replies

Constant bg picture & highlighted links

         

Chabrik

7:15 pm on Sep 21, 2002 (gmt 0)



Hello everyone here!
I'm just signed up, but actually I was looking for something like this forum because I've got 2 problems I can't resolve on my own.
1. Is it possible to make background static, so when I scroll the page down it remains on the same place?
2. Is it possible to make the currently selected link look different from others with help of plain HTML or PHP only? I'm pretty sure it is possible to do with JavaScript, but I'd prefer not to mix these two things, I mean PHP & JavaScript.
Regards,

tedster

7:38 pm on Sep 21, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello Chabrik - Welcome to WebmasterWorld

If you haven't already, I invite you to read our Welcome Thread [webmasterworld.com]. You'll learn a lot about the tools this place offers and the Terms of Service rules for our members that keep everything running smoothly.

On to your questions.

A fixed background image (one that doesn't scroll) is created in stylesheets - using "background-attachment" which has two possible values, "scroll" and "fixed". So, a stlyesheet might include this rule:

body {
background-image: url(bg.gif)
background-attachment: fixed
}

But I'm not clear about your second question. Do you mean having a link change in appearance when you pass the cursor over it (that's handled with a:hover) or by "currently selected", do you mean the menu item for the page that is currently displayed?

Chabrik

8:56 pm on Sep 21, 2002 (gmt 0)



Thanks for the first piece of advice. ^_^
Yep, I meant when the link is already selected, not when you are hovering over it, but it is not the visited link, it is the page that is currently displayed.
I hope this clarifies it.
Thanks again for such quick response.

tedster

8:59 pm on Sep 21, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



For the currently displayed page you can change the HTML for that menu item. But more than that, good usability says that you shouldn't offer a link that comes right back to the page you're on.

With frames having an active link that reloads the same page is unavoidable. Are you talking about a framed page?

Chabrik

9:15 pm on Sep 21, 2002 (gmt 0)



Okay, I'll describe the picture as is.
I've got page with frames, two of them are panels with links and
the third is main page where selected pages are displayed.
My client asked to somehow highlight the link which leads to displayed page, so the visitor could easily understand where they are.
So is it possible to do with HTML or PHP?
If I missed something describing let me know.