Hi there, I want to open a new window on click of my javascript gallery images. Have been trying lots of variations but dont really know what Im doing and need to get this sent to someone today. I know I really need to learn JS properly, can anyone could help me get out of a pickel, and I promise to get studying?
this is the JS funtion that makes my gallery work……..
[CODE]domReady(function()
{
var instanceOne = new ImageFlow();
instanceOne.init({ ImageFlowID:’slider’ });
});
Im ment to add the below to it for opening a fresh window……
[CODE]
var target_2 = new ImageFlow();
target_2.init({ ImageFlowID: ‘target_2’,
onClick: function() {window.open(this.url, ‘_blank’,
‘width=500,height=500,left=200,top=200’);} });
do I just sit this below the first bit of JS?
Now the problem Im having, is how to reference the second funtion in my html.I have been trying to ref target_2 in the html for each image to no avil,
could anyone tell me how to add it? heres the html for one of the images
[code=html] <div id=”slider” class=”imageflow”>
img src=”img/magda.jpg” longdesc=”http://www.magda-stawarska-beavan.com/inheritance.php” width=”200″ height=”148″ alt=”Sound and Video Artist” />
many thanks
jax?