|
|
Out of interest, did you just send the pic unsolicited, or do they have some kind of standard process asking people to submit suitable photos?
--
Help me! I'm turning into a grapefruit!
|
|
|
|
|
benjymous wrote:
Out of interest, did you just send the pic unsolicited, or do they have some kind of standard process asking people to submit suitable photos?
I just sent it unsolicited to editor@news24.co.za (the email I got from the site)
Most newspapers though would probably reject it or only give you a few seconds to make your case. They generally only accept from known photographers.
In this case though it was a major event and they had no photos for it. It was also a dramatic event which lends itself well to photos, so that helped.
Paul Watson Bluegrass Cape Town, South Africa
My photoSIG portfolio[^]
|
|
|
|
|
Testing signature in here so that if it is too big it does not nuke other forums
Paul Watson Bluegrass Cape Town, South Africa <br<small>Christopher Duncan wrote:
Which explains why when Santa asked, "And what do you want for Christmas, little boy?" I said, "A life." (Something no programmer should be without. Accessories sold separat
|
|
|
|
|
First time was not a success, take two
Paul Watson Bluegrass Cape Town, South Africa Christopher Duncan wrote:
Which explains why when Santa asked, "And what do you want for Christmas, little boy?" I said, "A life." (Accesories sold separately)
|
|
|
|
|
looks fine now.
Regards,
Brian Dela
|
|
|
|
|
test
Paul Watson Bluegrass Cape Town, South Africa Paul Watson wrote:
"The Labia [cinema]... ...was opened by Princess Labia in May 1949..."
Christian Graus wrote:
See, I told you it was a nice name for a girl...
|
|
|
|
|
Any ideas, concepts, eurekas etc. related to web development.
|
|
|
|
|
(IE6 only at this point, but possible to get working perfectly well in Mozilla 1.0 and other web standards supporting browsers)
Live Demo (can't do a demo here as JavaScript is nullified)
Summary
A DHTML menu which strictly seperates content from presentation from logic/function. The content/structure is pure HTML with no inline CSS, inline Javascript events or any such lark. Therefore it can be rendered to virtually any device and be viewed as intended. It will degrade functionally and visually gracefully.
The CSS is all in a seperate CSS file and applied using child parent selectors.
The functionality (JavaScript) is in a seperate file and is attached to the UL structure on body load of document.
HTML (view complete source in the Live Demo link above)
...
<body onload="initialiseMenu();">
<h1>DMenu: Sample Simple</h1>
<ul id="mainmenu">
<li><a href="about/">About Us</a></li>
<li><a href="about/">Articles</a>
<ul>
<li><a href="articles/">C#</a>
<ul>
<li><a href="articles/">C# Reference</a></li>
<li><a href="articles/">Tutorials</a></li>
<li><a href="articles/">Samples</a></li>
<li><a href="articles/">FAQ</a></li>
</ul>
</li>
<li><a href="articles/">.NET</a>
<ul>
<li><a href="articles/">.NET Reference</a></li>
<li><a href="articles/">Tutorials</a></li>
<li><a href="articles/">Samples</a></li>
<li><a href="articles/">FAQ</a>
<ul>
<li><a href="articles/">Windows Forms</a></li>
<li><a href="articles/">Web Forms</a></li>
<li><a href="articles/">XML</a></li>
<li><a href="articles/">ADO.NET</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="articles/">ASP.NET</a></li>
<li><a href="articles/">MC++</a>
<ul>
<li><a href="articles/">MC++ Reference</a></li>
<li><a href="articles/">Tutorials</a></li>
<li><a href="articles/">Samples</a></li>
<li><a href="articles/">FAQ</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="about/">Tools</a>
<ul>
<li><a href="articles/">Assemblers</a></li>
<li><a href="articles/">Disassemblers</a></li>
<li><a href="articles/">CP Utilities</a>
</ul>
</li>
<li><a href="contactus/">Contact Us</a></li>
</ul>
...
As you can see pure HTML, no CSS, no JavaScript events etc.
JavaScript (view complete source)
...
function initialiseMenu(){
var cTag = document.body.getElementsByTagName("LI");
for(var i=0; i < cTag.length; i++){
tcTag = cTag[i];
if (tcTag.children.length == 2)
{
tcTag.onmouseover=showSubMenu;
tcTag.onmouseout=hideSubMenu;
tcTag.children[0].className = "hassubmenu";
}
}
}
...
Basically it gets all LI children of the BODY element. It then loops through this collection and checks to see if the LI element has two children. Two children indicates a sub menu (it always has 1 child which is the A element.) One detected it then assigns the onmouseover and onmouseout events to that LI element.
The showSubMenu and hideSubMenu functions take in a this parameter (invisibly, i.e. no need for you to actually pass it) and then shows any UL child of the this element.
Nifty huh?
CSS (view complete source)
...
ul, li
{
font-size: small;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
display: block;
}
ul
{
width: 130px;
border: solid 1px #333333;
border-top: solid 5px #333333;
border-right: solid 2px #333333;
}
ul li ul
{
display: none;
position: absolute;
}
li a
{
padding: 2px;
text-decoration: none;
color: #000000;
background-color: #ffffee;
width: 100%;
display: block;
border-bottom: dashed 1px #333333;
text-indent: 2px;
font-size: small;
}
li a:hover
{
background-color: #ffcc00;
font-weight: bold;
border-bottom: solid 1px #333333;
}
li
{
float: left;
}
a.hassubmenu
{
background-image: url(../img/lay_dmnuhassub.gif);
background-repeat: no-repeat;
background-position: 120px 7px;
}
#mainmenu
{
margin: 10px;
margin-left: 5px;
float: left;
border-bottom: solid 2px #333333;
margin-bottom: 100%;
}...
As you can see the CSS uses child parent selectors (e.g. ul li ul means a UL element which is a child of an LI element which is a child of an UL element.)
Be sure NOT to place any margins around the A element or the onmouseout event will be fired before you mouseover the next menu item, found that out the hard way
Also notice that no positioning is done on the submenuitems. This is because the UL/LI/UL/LI structure imposes positiong itself, which is great because it does it well
Enjoy
Improvements
- Get to work in Mozilla 1.0 (and therefore Netscape 6.x/7.x as well)
- Pre-load "has sub menu" arrow graphic
|
|
|
|
|
Hi Paul
Have you got another link perhaps? Its sure does look interesting
Cheers
"There are no stupid question's, just stupid people."
|
|
|
|
|
leppie wrote:
Have you got another link perhaps? Its sure does look interesting
Have a look at my DMenu article, it is the same thing
Paul Watson Bluegrass Cape Town, South Africa Ray Cassick wrote: Well I am not female, not gay and I am not Paul Watson
|
|
|
|
|
Duis autem vel eum iriure dolor Got it !
"There are no stupid question's, just stupid people."
|
|
|
|
|
The UL/LI-combo with absolute positioning is pretty smart indeed! I wish I had read this 2 1/2 months ago...
--
standing so tall, the ground behind
no trespassers, on every floor
a garden swing, and another door
she makes it clear, that everything is hers
A place of abode, not far from here, Ms. Van de Veer
|
|
|
|
|
Hmm... is this for Paul's multiple personalities, or can we join in too?
I've always heard that there was an idea behind Win ME... I still can't figure out what that was... anyboy know??? I;ve herad the idea was that it was supposed to be n operating system but I doubt this. - Brian Delahunty
|
|
|
|
|
Megan Forbes wrote:
Hmm... is this for Paul's multiple personalities, or can we join in too?
Turn on the bubbles, bring some shot glasses and good booze, put on some good music and anyone can join!
If anyone wants to post their revelations here then feel free, just don't look at me when I publish a Book of Revelations and you see your code in it. (j/k)
Paul Watson Bluegrass Cape Town, South Africa
Ray Cassick wrote:
Well I am not female, not gay and I am not Paul Watson
|
|
|
|
|
Megan Forbes wrote:
Hmm... is this for Paul's multiple personalities, or can we join in too?
Oh christ no.... we already have multiple Nish's and Brian's and now multiple Pau's.. We're definitly in trouble!!!
Regards,
Brian Dela
|
|
|
|
|
... so is my idea.
So I figured what I will use this thingamabob for... no not insults... no not coming out of the closet... no not secretly starting a revolution to overthrow C++ developers using VB and some sticky tape**...
Rather for StuffTM that I have figured out but which is not either ready to be ArticlesedTM or will never be ArticlesedTM but which is useful nonetheless.
I could blog, but would be about as useful to you as being told you just won the Miss. Afghanistan contest by general election.
Oh and if you want to tell me dirty secrets, this is the place, I won't publish it I
SwearTM..
* Hey so I like William Orbit and that song rocks.
** Though that would be a good idea anyhow
|
|
|
|
|
Paul Watson wrote:
I won't publish it
Well.. not in too big a font anyway!!!
Regards,
Brian Dela
|
|
|
|
|
Paul Watson wrote:
about as useful to you as being told you just won the Miss. Afghanistan contest by general election
So, where's all this Stuff you are boasting about then?
I knew it would end badly when I first met Chris in a Canberra alleyway and he said 'try some - it won't hurt you'..... - Christian Graus on Code Project outages
Religion without Science is blind, Science without Religion is lame -Albert Einstein
|
|
|
|
|
Megan Forbes wrote:
So, where's all this Stuff you are boasting about then?
People read this crap? Crumbs. Better stop monkeying around then.
Errr, I take requests... yes, good way to get good ideas for posts. Send in your requests! No R&B though please.
Paul Watson Bluegrass Cape Town, South Africa Christopher Duncan wrote:
Which explains why when Santa asked, "And what do you want for Christmas, little boy?" I said, "A life." (Accesories sold separately)
|
|
|
|
|
*cue chopper blade sounds*
This is such a cool feature. I can rant and blather all I want and nobody will ever notice, wonderful!
If you are reading this... I know a good shrink, but she refuses to see me, I can still give you her number though.
|
|
|
|
|
Paul Watson wrote:
If you are reading this... I know a good shrink, but she refuses to see me, I can still give you her number though.
Is she cute? I just had to say that!
Jeremy Falcon
Imputek
<nobr>"In fact it is quite simple, men and women both only want one thing - what they can't have!" - phykell
|
|
|
|
|
Big brither is watching you...
|
|
|
|
|
Jeremy Falcon wrote:
Is she cute?
Hell yeah*. That is her and her assistant.
* A co-worker sent me that image with the following message "Please read this first
You know me well enough that I don't usually go for these forwarded
emails, or believe in supporting these kinds of charity programs, but I
feel it really is a worthy cause. You are really only giving up something
that you would otherwise throw away!
Please save your old jeans... children like Stephanie (see the
pictureattached) really need your help.
For just fifty cents a day, the price of a small cup of coffee, you can
sponsor this girl. Wouldn't it give you a great feeling to know that
somewhere you have helped to put clothes on the back of a young person?
Your every cent would be appreciated, "
|
|
|
|
|
Are these the type of girls you have stashed away in South Africa? If so, hold down the fort 'cause Jeremy's on his way.
Jeremy Falcon
Imputek
<nobr>"In fact it is quite simple, men and women both only want one thing - what they can't have!" - phykell
|
|
|
|