Guidance needed with HTML

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

Click on any story.  Then click on any photo that says 'click to =

Does anyone know the HTML code to make the photo and caption appear in a =
specified size, and make the main page darker?

Thanks in advance!


Re: Guidance needed with HTML

Guv Bob wrote:
Quoted text here. Click to load it

No, not even the person who coded those pages. Guidance needed indeed. ;-)

Well, first of all, the "Click to enlarge" doesn't work when JavaScript
is turned off. In fact, the image and caption text don't even appear
without JS.

With or without JS, the pages' markup is invalid.

The pages are allegedly XHTML, not HTML.

The markup used is for the photos you're talking about is, in any case
(e.g. HTML 4.1 Strict or XHTML 1.0 Transitional), invalid. Look at the
code (which may very well wrap quite nastily in your newsreader, so
sorry) (and BTW, you can see this via the View Source function in your

    <dl class="cbstv_article_images cbstv_img_border">
      <div class="cbstvs_slideshow" id="img_0">
title="Click to zoom." class="cbstv_cursor_pointer popup_clicker"
style="height:131px;width:175px;border-width:0px;" />
class="cbstv_click_enlarge popup_clicker" myIndex="0">Click to
           Joe Biden speaks during a live taping of Meet the Press Sept.
7, 2008, in Wilmington, Del.
           <p class="cbstv_attribution">Brendan Smialowski/Getty Images
        <div class="cbstv_slider_paging">
          <a class='cbstv_slide_back_but_grey' disabled></a>
          <span style="float:left;">1 of 1</span>
          <a class='cbstv_slide_next_but_grey' disabled></a>

It appears to use JS, arbitrary non-valid HTML attributes, and CSS to
achieve questionable effects on a page with poor accessibility. Imitate
with care.

Possessive "its" has no apostrophe. Even on the Internet.

Re: Guidance needed with HTML

Guv Bob wrote:
Quoted text here. Click to load it

The technique depends on Javascript and is generally referred to as
'Lightbox'. There's dozens of scripts that do this now with a few
differences (some can only show an image, some can show HTML, etc.)

See: (JavaScript)
... scroll to the bottom (external links) for various flavors of the script.

Despite purists view that it's not accessible, for the overwhelming
majority of surfers it's a very functional approach (not having to nav
back and forth to see the a small piece of content), hence it's rise in

Re: Guidance needed with HTML

Thanks, John & Steve!!!

Nice to run across this newsgroup with fine dudes like you guys!


Quoted text here. Click to load it

Re: Guidance needed with HTML

Guv Bob wrote:
Quoted text here. Click to load it

It's not quite the same but if you need simple Javascript, then that's
all that I'm capable of. Try then
take the focus away from your browser by clicking on another window (one
that will leave at least a piece of my page showing).

I'm not planning on using this trick, but it was part of some research
that I did, and I just happened to be editing the code that generates
that page when I wanted somewhere to test.

Steve Swift

Site Timeline