I just felt to refactor this bit while trying to answer your question:

Something like this (with HAML/jQuery):

%head
  // << other stuff >>

  /[if IE]
    :javascript
      $(document).ready(function() {
        jQuery('a[rel="external"]').click(function() {
          var w = window.open($(this).attr('href'), $(this).attr
('id'), 'width=640,height=375,left=0,top=0,scrollbars=no');
          w.focus();
          return false;
        }
      });
%body
  %a{:href => "http://www.frame-concept.de/logica.html";, :rel =>
'external', :id => 'Video_4159'}
    %img{:src => 'images/logica.jpg', :alt => 'Player', :longdesc =>
'images/Leistungen_klein.jpg', :border => '0'}



grimen

On Jul 3, 4:49 pm, "[email protected]" <[email protected]>
wrote:
> Hi!
>
> I would like to do something like the following:
>
> <!--[if !IE]> -->
> <a href="http://www.frame-concept.de/logica.html";
> params="lightwindow_width=640,lightwindow_height=375"
> class="lightwindow"><img src="images/logica.jpg" alt="Player"
> border="0" />
> <!-- <![endif]-->
> <!--[if IE]>
>     <a onclick="var w=window.open
> (this.href,'Video_4159','width=640,height=375,left=0,top=0,scrollbars=no'); 
> w.focus
> ();return false;" href="http://www.frame-concept.de/logica.html";><img
> src="images/logica.jpg" alt="Player" longdesc="images/
> Leistungen_klein.jpg" border="0" />
> <![endif]-->
>
> How would i do that with haml?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to