Hi all, Not that great with javascript and need some help so thanks
to whoever helps me out.
Well I have run into a problem and cannot figure it out at all.
I have a lightwindow inside a <p> tag inside a jquery slideout which is being called with both lightwindow & slide is in a iframe.
Well the lightwindow pops out of the i frame in the parent window if i have the a link class="lightwindow_iframe_link" outside of the p tag but i want it to work inside the p tag and it doesnt if it is inside the p tag like below.
here is my code

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" type="text/css" href="css/lightwindow.css" />
<script type="text/javascript" src="javascript/prototype.js"></script>
<link rel="stylesheet" type="text/css" href="styles.css" />
</head>
<body>
<div class="main">    
 <p class="openTop openLeft red" title="Gallery &nbsp; &nbsp;"  style="top:280px; left:314px;">
       <a href="gallery/lg/1.jpg" class="lightwindow_iframe_link" ><img src="img/3.jpg" class="spaceTop" alt="Subscribe" title="Subscribe" width="400" height="180" />
</a>
    </p>
</div>

       <SCRIPT type="text/javascript">
var links = $$('.lightwindow_iframe_link');
links.each(function(link) {
Event.observe(link, 'click', function() {top.myLightWindow.activate(null, link); }, false);
link.onclick = function() { return false; };
});
</SCRIPT>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="script.js"></script>

</body>
</html>

Could anyone help? :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.