You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

Button Tag with Rel Attribute not W3C Compliant Created Mar 26, 2009

This thread is solved

Views: 4977     Replies: 5     Last reply Dec 16, 2010  
You must login first before you can use this feature

drmeisner

Posts: 3

Registered:
Dec 5, 2008

Button Tag with Rel Attribute not W3C Compliant

Posted: Mar 26, 2009

This tag is not W3C compliant. Is there another way to do overlays that is?
<button rel="#overlayvideo">Play Video</button>

<script type="text/javascript">
$(function() {

// setup overlay actions to buttons
$("button[rel]").overlay({

// setup exposing (optional operation);
onBeforeLoad: function() {
this.expose();
},

onLoad: function(content) {
// find the player contained inside this overlay and load it
$("a.player", content).flowplayer(0).load();
},

onClose: function(content) {
$("a.player", content).flowplayer(0).unload();

// close exposing
$.unexpose();
}
});

// install flowplayers
$("a.player").flowplayer(http://www.myserver.ca/scripts/flowplayer_scripts/flowplayer-3.0.0-rc4.swf");
});
</script>

Tero
Author of jQuery Tools and this website + JavaScript developer of Flowplayer.

Posts: 1867

Registered:
Nov 16, 2007

» Button Tag with Rel Attribute not W3C Compliant

Posted: Apr 16, 2009

Reply to: Button Tag with Rel Attribute not W3C Compliant, from drmeisner
that is true. you can always use A- tag with a button-like background image.

marten

Posts: 2

Registered:
Aug 18, 2009

» » Button Tag with Rel Attribute not W3C Compliant

Posted: Aug 18, 2009

Reply to: » Button Tag with Rel Attribute not W3C Compliant, from tipiirai
Hello,
At first... wonderful tools!!!

But this A- tag. I understand with a rel attribute it won't work. I have tried and: nope.

How should I use this A- tag?

inspiredtalents

Posts: 3

Registered:
Jun 15, 2009

Button Tag with Rel Attribute not W3C Compliant

Posted: Aug 21, 2009

Reply to: » » Button Tag with Rel Attribute not W3C Compliant, from marten
Try
$("a[rel]").overlay();

This well works for Me

marten

Posts: 2

Registered:
Aug 18, 2009

» Button Tag with Rel Attribute not W3C Compliant

Posted: Aug 21, 2009

Reply to: Button Tag with Rel Attribute not W3C Compliant, from inspiredtalents
Folyjon,

Thank you for your reply.
At first I didn't get it but after a siesta I suddenly understood.
It works fine!!!

Regards,
Marten

peroulg

Posts: 4

Registered:
Dec 8, 2010

» Button Tag with Rel Attribute not W3C Compliant

Posted: Dec 16, 2010

Reply to: Button Tag with Rel Attribute not W3C Compliant, from drmeisner
Sorry guys, I had many siestas but couldn't figure out where and how to use the proposed

$("a[rel]").overlay();

Any chance for some help by Tero, Inspiredtalents or Marten please? I understand that this is an old thread but the issue of non-validation is ongoing.

Many thanks in advance to anyone who could help.

George