Re: [WSG] Serving Different Content to Returning Visitors

2007-07-27 Thread Designer



Daniel Kendrick wrote:
I am curious if there is a way to serve up different pages to 
returning visitors so its different than that of a first time visitor.


If PHP is an option, you can produce a different 'effect' by having an 
array and randomly selecting the content.  At it's simplest level this 
can just be an image, like this:


?php
 $location = array (

array(location='Treyarnon Bay', image='treyarnon.jpg'),

array(location='Trevose Head', image='trevose.jpg'),

array(location='Padstow', image='padstow.jpg'),

array(location='Constantine bay', image='constantine.jpg'),

array(location='Showery Tor', image='showerytor.jpg'),

array(location='Bedruthan', image='bedruthan.jpg'),

array(location='Treyarnon Dusk', image='treyarnondusk.jpg'),

array(location='Carnewas', image='carnewas.jpg'),


);  

$numlocations=sizeof($location);

$row = (rand(0,($numlocations-1)));
$num=$row+1;
	echo img src=\openingpage/graphics/.$location[$row][image] 
.\ alt=\\ /p.$location[$row][location]./p;


?

Or you can go completely over the top and have the array consisting of 
as many 'pages' as you like, selecting randomly as above.  You can do 
the latter by linking to pages, by changing the CSS, etc etc.


It's not perfect of course, but it doesn't use cookies, it doesn't need 
JS, it's simple, and it's robust.


HTH,
--
Bob

www.gwelanmor-internet.co.uk



***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] an inline element (inside a block element) sibling ofanother block element

2007-07-27 Thread Rimantas Liubertas
 I think I'd like to hear from someone really into this stuff - because I
 realized that my interpretation would outlaw this:

 div
 img
 /div

 and surely that must be okay, no?

I am confused, what problem do you try to solve?
Yes, according to specification and DTD as shown earlier it is ok to
have inline, block,
or mixed content in DIV.
Semantics don't have much to do with it - as you may have valid reasons to wrap
single word (or image, or link) in SPAN you may have valid reasons to
wrap it in DIV - they are both generic containers.

Regards,
Rimantas
--
http://rimantas.com/


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] an inline element (inside a block element) sibling ofanother block element

2007-07-27 Thread E Michael Brandt

We are discussing the current draft of html5:

http://www.whatwg.org/specs/web-apps/current-work/#block-level

btw, my example of
div
img
/div
was not a good one as the proposed new rule allows either inline OR 
blcok level elements within a div, just not both.


however it does seem to say this would not be allowed, which makes no 
sense to me:


div
img
p/p
/div

--

E. Michael Brandt

www.divaHTML.com
divaGPS : you-are-here menu highlighting
divaFAQ : FAQ pages with pizazz

www.valleywebdesigns.com
JustSo PictureWindow
JustSo PhotoAlbum

--

Rimantas Liubertas wrote:

I think I'd like to hear from someone really into this stuff - because I
realized that my interpretation would outlaw this:

div
img
/div

and surely that must be okay, no?


I am confused, what problem do you try to solve?
Yes, according to specification and DTD as shown earlier it is ok to
have inline, block,
or mixed content in DIV.
Semantics don't have much to do with it - as you may have valid reasons to wrap
single word (or image, or link) in SPAN you may have valid reasons to
wrap it in DIV - they are both generic containers.

Regards,
Rimantas
--
http://rimantas.com/


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***






***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] Target 1st item in list

2007-07-27 Thread David Dorward

On 27 Jul 2007, at 00:08, Nick Roper wrote:


I need to target the 1st item in a list.


http://www.w3.org/TR/CSS2/selector.html#first-child
But: http://www.webdevout.net/browser-support-css#css2pseudoclasses

--
David Dorward
http://dorward.me.uk/
http://blog.dorward.me.uk/




***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] an inline element (inside a block element) sibling ofanother block element

2007-07-27 Thread E Michael Brandt
I think I'd like to hear from someone really into this stuff - because I 
realized that my interpretation would outlaw this:


div
img
/div

and surely that must be okay, no?

--

E. Michael Brandt

www.divaHTML.com
divaGPS : you-are-here menu highlighting
divaFAQ : FAQ pages with pizazz

www.valleywebdesigns.com
JustSo PictureWindow
JustSo PhotoAlbum

--

E Michael Brandt wrote:
I am going to disagree with my own last statement - it may be valid in 
the sense that it passes Validation testing online, but surely it is not 
semantically reasonable to have bare text.  I am less sure myself about 
the semantics of bare a tags, but for the sake of symmetry..






***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



RE: [WSG] HELP with CSS

2007-07-27 Thread Ted Drake
Hi Olajide

Your page suffers from a common ailment. You are approaching CSS before
structural markup.

You need to re-build your page with semantic markup and then apply the CSS.

Here are some common problems that you have.

Multiple h1 elements. The H1 should only appear once and should define the
whole page. Flyer Design and Nu' Image... should be h3 elements.

Div class=thumbnail is repeated. Divs have no structure and are just a
container. This should be an unordered list with each div an li and
class=thumbnail applied to the ul

Why are you using a block quote when there is no quote inside? 
p
In 2005, me and a couple of the youth took on this project to start
a youth magazine for the church. Here is the outcome. Designed by yours
truely. 
/p

This is a statement by yourself and you are not referencing an outside
source. The blockqoute is an incorrect use.

Don't use inline images to replace a simple background color: li
  img src=images/red.gif alt=Olajide Olaolorun height=40 width=40
/li
li
  img src=images/red.gif alt=Olajide Olaolorun height=40 width=40
/li

Be careful with using color:#fff without applying a background color to the
container. Look at your site with images disabled, white on white text is
not very useful.

To repeat, you're not alone. Too many people approach CSS without having a
good understanding of structural markup. Your code will be bloated and you
will end up with complicated CSS until you understand how to use the
structural elements correctly. 

Ted Drake
www.last-child.com

--

From:   Olajide Olaolorun
Sent: Thursday, July 26, 2007 1:18 PM
To: WSG
Subject: [WSG] HELP with CSS

 

Can someone help me out here:

http://www.olajideolaolorun.com/gfx/

There is a problem with where the text start and where the pictures end..
For some reson it loads under the pictres and i have to use the p tag to
create spacing for it... can someone help me out. 

-- 
Best Regards, 
Olajide Olaolorun 
###
Personal: http://www.olajideolaolorun.com
Business: http://www.tripleo.biz 
   



***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] Serving Different Content to Returning Visitors

2007-07-27 Thread Daniel Kendrick
Huh...

I had considered using PHP for something similar. I honestly wouldnt have
thought to use it like that. I appreciate it you have given me a great idea.
If it works ill post my results :)


--D

On 7/27/07, Designer [EMAIL PROTECTED] wrote:


  Daniel Kendrick wrote:
  I am curious if there is a way to serve up different pages to
  returning visitors so its different than that of a first time visitor.

 If PHP is an option, you can produce a different 'effect' by having an
 array and randomly selecting the content.  At it's simplest level this
 can just be an image, like this:

 ?php
  $location = array (
 
 array(location='Treyarnon
 Bay', image='treyarnon.jpg'),
 
 array(location='Trevose
 Head', image='trevose.jpg'),
 
 array(location='Padstow',
 image='padstow.jpg'),
 
 array(location='Constantine
 bay', image='constantine.jpg'),
 
 array(location='Showery
 Tor', image='showerytor.jpg'),
 
 array(location='Bedruthan',
 image='bedruthan.jpg'),
 
 array(location='Treyarnon
 Dusk', image='treyarnondusk.jpg'),
 
 array(location='Carnewas',
 image='carnewas.jpg'),

 );

 $numlocations=sizeof($location);
 $row =
 (rand(0,($numlocations-1)));
 $num=$row+1;
 echo img
 src=\openingpage/graphics/.$location[$row][image]
 .\ alt=\\ /p.$location[$row][location]./p;

 ?

 Or you can go completely over the top and have the array consisting of
 as many 'pages' as you like, selecting randomly as above.  You can do
 the latter by linking to pages, by changing the CSS, etc etc.

 It's not perfect of course, but it doesn't use cookies, it doesn't need
 JS, it's simple, and it's robust.

 HTH,
 --
 Bob

 www.gwelanmor-internet.co.uk



 ***
 List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
 Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
 Help: [EMAIL PROTECTED]
 ***




***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***

RES: [WSG] HELP with CSS

2007-07-27 Thread SosCpdGMail
Hello Ted

There is, somewhere, a reference or tutorial of how can we read and learn
about the structural way and css? I have look around many and many
approaches to this subject, in many and many different ways like books,
googling and sources. Its hard to pick one. Any of them always have a catch,
and it is much more difficult if you write code from interpreted scripts
like I do.

Thanks in advance

Rafael


-Mensagem original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome
de Ted Drake
Enviada em: sexta-feira, 27 de julho de 2007 14:31
Para: wsg@webstandardsgroup.org
Assunto: RE: [WSG] HELP with CSS

Hi Olajide

Your page suffers from a common ailment. You are approaching CSS before
structural markup.

You need to re-build your page with semantic markup and then apply the CSS.

Here are some common problems that you have.

Multiple h1 elements. The H1 should only appear once and should define the
whole page. Flyer Design and Nu' Image... should be h3 elements.

Div class=thumbnail is repeated. Divs have no structure and are just a
container. This should be an unordered list with each div an li and
class=thumbnail applied to the ul

Why are you using a block quote when there is no quote inside? 
p
In 2005, me and a couple of the youth took on this project to start
a youth magazine for the church. Here is the outcome. Designed by yours
truely. 
/p

This is a statement by yourself and you are not referencing an outside
source. The blockqoute is an incorrect use.

Don't use inline images to replace a simple background color: li
  img src=images/red.gif alt=Olajide Olaolorun height=40 width=40
/li
li
  img src=images/red.gif alt=Olajide Olaolorun height=40 width=40
/li

Be careful with using color:#fff without applying a background color to the
container. Look at your site with images disabled, white on white text is
not very useful.

To repeat, you're not alone. Too many people approach CSS without having a
good understanding of structural markup. Your code will be bloated and you
will end up with complicated CSS until you understand how to use the
structural elements correctly. 

Ted Drake
www.last-child.com

--

From:   Olajide Olaolorun
Sent: Thursday, July 26, 2007 1:18 PM
To: WSG
Subject: [WSG] HELP with CSS

 

Can someone help me out here:

http://www.olajideolaolorun.com/gfx/

There is a problem with where the text start and where the pictures end..
For some reson it loads under the pictres and i have to use the p tag to
create spacing for it... can someone help me out. 

-- 
Best Regards, 
Olajide Olaolorun 
###
Personal: http://www.olajideolaolorun.com
Business: http://www.tripleo.biz 
   



***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***