Re: [WSG] target="_blank" substitute

2004-04-18 Thread Martin Stender
I'm using that one too.

But I had another script that needed to be run when the page loaded, 
and then the scripts collided, so to speak.

So I had to call the functions from  instead, which works fine.

Martin



On 18/4-2004, at 5.53, Justin French wrote:

On 18/04/2004, at 1:29 PM, Darian Cabot wrote:

This is probably obvious...

I would like to open a link in a new window. I used to use 
target="_blank"
attribute, but that isn't xhtml strict. Can anyone enlighten me on a 
xhtml
strict method? as I'd like my pages to verify ^^
The solution I've settled upon is to include rel='external' instead of 
target='_blank' on all  tags.  Then I link a small JS file in the 
head of all my pages, which is this:

function externalLinks()
	{
	if (!document.getElementsByTagName) return;
	var anchors = document.getElementsByTagName("a");
	for (var i=0; i
		{
		var anchor = anchors[i];
		if (anchor.getAttribute("href") && anchor.getAttribute("rel") == 
"external")
		anchor.target = "_blank";
		}
	}
window.onload = externalLinks;

This is all basically a straight copy from an article I found on 
http://www.sitepoint.com a few months back.

---
Justin French
http://indent.com.au
*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
*
*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
* 



Re: [WSG] Drop down blues ....

2004-04-15 Thread Martin Stender
Fortunately, that was the client who had been tampering with the cms 
... not me ... phew ... :-) He's an IE guy ONLY, so that didn't show 
...

Speaking of which ... I used to use the standard IE 'wysiwyg' editor 
for my CMS stuff, but moving to XHTML renders that totally useless. It 
removes quotes in id/class names on elements, translates all elements 
to upperclass etc. I've been looking into Midas and Mozile ... any 
thoughts on that, anyone?

Btw, I added a piece of script I found on A List Apart ... The dropdown 
seems more solid now ...

Martin
http://www.mstender.dk
On 15/4-2004, at 18.54, Chuck wrote:

Check your syntax (it's TAX day ;^)).

you didn't close  &  in "sidebar".

-chuck
==
On Thursday, April 15, 2004, at 04:55  AM, Martin Stender wrote:
Hi all,

I've almost done with a small site for a client. Of course, I had to 
choose xhtml 1.1, just to challenge myself, so that obviously imposes 
some restrictions.

But I have a problem with IE 6 (yes, really ... :-), where the 
dropdown - done with an unordered list - initially works, then 
suddently don't etc.
It's the menu item named 'Our 3 Months of Work', the url (my slow 
development server is home) is presales2.cybermedia.dk

Any idea why this happens?
Btw, the CSS doesn't validate, as I have to put in a .htc to make IE 
behave altogether ...

Thanks in advance
Martin
*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
*
*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
*
*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
* 



[WSG] Drop down blues ....

2004-04-15 Thread Martin Stender
Hi all,

I've almost done with a small site for a client. Of course, I had to 
choose xhtml 1.1, just to challenge myself, so that obviously imposes 
some restrictions.

But I have a problem with IE 6 (yes, really ... :-), where the dropdown 
- done with an unordered list - initially works, then suddently don't etc.
It's the menu item named 'Our 3 Months of Work', the url (my slow 
development server is home) is presales2.cybermedia.dk

Any idea why this happens?
Btw, the CSS doesn't validate, as I have to put in a .htc to make IE 
behave altogether ...

Thanks in advance
Martin
*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
* 



Re: [WSG] Suggestions about what to do here ...

2004-03-25 Thread Martin Stender
Hi Michael

Won't the Tantek hack work fine?

someElement {
font-size:small;  /* fake value fed to IE5/5.5*/
voice-family: "\"}\"";
voice-family:inherit;
font-size:x-small; /* real value for most other browsers */
}
html>.someElement {
	font-size:x-small; /* Opera 5 has the same parsing bug as IE 5/5.5, 
but this fixes it, as IE  can't understand child selectors.*/
}

Martin

On 24/3-2004, at 14.46, Michael Kear wrote:

What do you guys think I should do about this ….

  

A user has logged into my bluegrass Australia web site as a member 
(http://bluegrass.org.au )  and says when he logs in, he can’t read 
the site any more, because the text is too small and the menus don't 
work properly.    The menus don't work properly because I have a 
javascript error, that’s under control, I can fix that. But the font 
size thing is a bit of a worry. I asked him about his environment and 
here’s what he said he has:

 

Intel Celeron 650 meg processor, ATI graphics card, 256 meg RAM, 
Mitsubishi monitor. I run windows 98, IE 5.

 

Here’s how I see it.  I can:

 

[A]  say he’s got IE5, tell him to take a jump because he needs to 
upgrade. (I’ve done that, but if there’s another answer that’s easy 
I’d like to do that too – he’s not alone)

[B] just let him lump it and use the CTRL-Wheel to increase the font 
size

[C] change the style sheets to accommodate IE5 users.

  

So what’s your suggestions about how I can handle this?  I’m not 
against telling him ‘tough – upgrade your browser!’  but if there’s a 
fix that’s fairly easy I’d like to consider that.

 

The site is at http://bluegrass.org.au   and I’ve set up a membership 
for you to try .. user:  [EMAIL PROTECTED]  pass: member

  

The style sheets are :

  

Main pages:  http://bluegrass.org.au/styles/Bluegrass_Australia.css  

Menus: http://bluegrass.org.au/styles/cssjsmenu.css

Menus hover: http://bluegrass.org.au/styles/cssjsmenuhover.css

 

Yes, I know it’s not valid html, but I don't think that’s why this 
problem has come about.  To get the html to validate is a big job 
here, so I’m working towards that as fast as  I can.

 

 

Cheers

Mike Kear

AFP Webworks

Windsor, NSW, Australia

http://afpwebworks.com

 
*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
*


Re: [WSG] Scrollbars in IE6 (PC)

2004-03-24 Thread Martin Stender
Just from the top of my head (@ home with my Mac now); can't you just:

body {
margin: 0px;
overflow:hidden;
}
 ?
Martin
On 24/3-2004, at 9.06, Vaska.WSG wrote:

Hi everybody...

I'm having a terrible time trying to figure out just why IE6 (Windows 
XP) is throwing scrollbars at me when I view a page in a frame - I'm 
really not sure what the trick is to this (if there is one).  I hate 
to ask dumb or redundant questions, but this one is really nagging.

Thanks for any advice on this...v

Once again, this is being view in a frame...here is the gist of the 
CSS:

body {
margin: 0px;
}
.container {
margin: 0px;
padding: 0px;
width: 100%;
}
*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
* 



Re: [WSG] CSS Form Layout Examples

2004-03-24 Thread Martin Stender
Hmm, I dont' think IE 5.2/Mac has general problems with strict.

I'm working on a site in xhmtl 1.1, and has a form like this: