Go Back   Velocity Reviews > Newsgroups > HTML
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

HTML - rollovers in frames

 
Thread Tools Search this Thread
Old 01-22-2004, 02:07 PM   #1
Default rollovers in frames


Hello:

I'm building a web page with two frams, top and bottom. I have a
navigation bar in the bottom frame which has roll-over images that are
links to what will load into the top frame. The navigation bar is a
list of my client's various projects. The client wants the name of
the project to change from grey to white when you roll over the text
AND when the project image loads in the above window, they want the
project name (in the navigation bar) to stay white.

Can this be done? If so, I'd love to know how to do it.

Thanks.

lynnpd99


lynnpd99
  Reply With Quote
Old 01-22-2004, 03:36 PM   #2
Leif K-Brooks
 
Posts: n/a
Default Re: rollovers in frames

lynnpd99 wrote:
> I'm building a web page with two frams, top and bottom.


http://www.html-faq.com/htmlframes/?framesareevil

  Reply With Quote
Old 01-22-2004, 04:16 PM   #3
Steve R.
 
Posts: n/a
Default Re: rollovers in frames

Leif K-Brooks wrote in message ...
> http://www.html-faq.com/htmlframes/?framesareevil


From that website ...

> "There are, however, good uses for frames. ... The type of applications
> that frames are adequately capable of handling are those applications
> that don't require bookmarking,"


What does it matter if you can't bookmark a 10-page website? Do you
bookmark a 10-page newspaper? Thought not.

> "don't require search-engine indexing (and positively discourage it)",


That's a fib, plenty of framed websites come well up in search results.

> "and don't require the ability to be accessible to the World Wide Web".


Yet another nonsense. Plenty of framed websites on the w-w-w working fine.


  Reply With Quote
Old 01-22-2004, 05:10 PM   #4
Richard
 
Posts: n/a
Default Re: rollovers in frames

Leif K-Brooks wrote:

> lynnpd99 wrote:
>> I'm building a web page with two frams, top and bottom.


> http://www.html-faq.com/htmlframes/?framesareevil


"Frames are evil" because those who prefer using CSS say they are. Just as
they say use of tables is not good.
CSS is not mandatory, it is an option.
HTML is mandatory.
How did we ever manage surfing and bookmarking before CSS became so popular?


  Reply With Quote
Old 01-22-2004, 05:58 PM   #5
Leif K-Brooks
 
Posts: n/a
Default Re: rollovers in frames

Steve R. wrote:
> Do you bookmark a 10-page newspaper? Thought not.


If there's an interesting story I want to read later, I'll cut it out.
That's the equivalent of bookmarking it.

  Reply With Quote
Old 01-22-2004, 06:24 PM   #6
lynnpd99
 
Posts: n/a
Default Re: rollovers in frames

Leif K-Brooks <> wrote in message news:<Q5SPb.210$>.. .
> lynnpd99 wrote:
> > I'm building a web page with two frams, top and bottom.

>
> http://www.html-faq.com/htmlframes/?framesareevil



I agree, frames are evil, but my client doesn't agree so, I'm stuck!
Can anyone help me?

lynnpd99
  Reply With Quote
Old 01-22-2004, 06:51 PM   #7
Toby A Inkster
 
Posts: n/a
Default Re: rollovers in frames

Steve R. wrote:

> Leif K-Brooks wrote in message ...
>> http://www.html-faq.com/htmlframes/?framesareevil

>
> From that website ...
>
>> "There are, however, good uses for frames. ... The type of applications
>> that frames are adequately capable of handling are those applications
>> that don't require bookmarking,"

>
> What does it matter if you can't bookmark a 10-page website? Do you
> bookmark a 10-page newspaper? Thought not.


But you're not bookmarking a page within a site -- you're bookmarking a
page within a web of billions of documents. Do you bookmark a billion page
newspaper? You do if you want to find that page again.

>> "don't require search-engine indexing (and positively discourage it)",

>
> That's a fib, plenty of framed websites come well up in search results.


Yes, they do: http://www.google.com/search?q=requires+frames

And if one of the framed pages *does* manage to get high on search engine
rankings, then when people arrive there they won't be able to see the rest
of your site because all the navigation was in the other frame.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me - http://www.goddamn.co.uk/tobyink/?page=132

  Reply With Quote
Old 01-22-2004, 07:21 PM   #8
Steve R.
 
Posts: n/a
Default Re: rollovers in frames

Toby Inkster wrote in message ...
> But you're not bookmarking a page within a site -- you're bookmarking a
> page within a web of billions of documents. Do you bookmark a billion

page
> newspaper?


Nonsense - If you try to bookmark a page in a framed website (in the normal
manner) you just bookmark *THAT* site header and homepage and you then just
flick through the pages till you find what you wanted - Just like a 10-page
newspaper.

It's no big deal. If you want to bookmark the actual page it's a
right-click jobbie. Again no problem for a reasonably computer literate
person.


  Reply With Quote
Old 01-22-2004, 07:58 PM   #9
Leif K-Brooks
 
Posts: n/a
Default Re: rollovers in frames

lynnpd99 wrote:
> I agree, frames are evil, but my client doesn't agree so, I'm stuck!


Simple. Python is my language of the day, so do this:

from modern import client, lynnpd99
lynnpd99.clients[0] = client()

  Reply With Quote
Old 01-22-2004, 08:09 PM   #10
Safalra
 
Posts: n/a
Default Re: rollovers in frames

(lynnpd99) wrote in message news:< om>...
> I'm building a web page with two frams, top and bottom. I have a
> navigation bar in the bottom frame which has roll-over images that are
> links to what will load into the top frame. The navigation bar is a
> list of my client's various projects. The client wants the name of
> the project to change from grey to white when you roll over the text
> AND when the project image loads in the above window, they want the
> project name (in the navigation bar) to stay white.


As you're using frames, you're obviously not bothered about
accessibility, so can achieve the effect you want with JavaScript.
Roughly what you need to do (it's been a while since I've used
JavaScript...) is set up a variable for which link was last clicked.
Then onMouseOver sets a link to white, onMouseOut sets it to grey if
the link is not the most recently clicked link (otherwise leaving it
white), and the onClick stores which link was most recently clicked.

Of course it would be far better not to use frames at all.

--- Safalra (Stephen Morley) ---
http://www.safalra.com/hypertext
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump