I am updating some jQuery code and i need to add "target="_blank"" to the links in the code below. Unfortunately I am not that into jQuery and have not written the original code myself. Thanks in advance for any kind of help!
This is what the code looks like:
<script>
var console = {log:function(){}}
var _frames;
var _activeLink=0;
var _links =
[
"http://www.transavia.com/hv/main/nav/processflightqry?toDay=23&toMonth=2014-07&lang=fr&adults=1&from=ORY&fromMonth=2014-07&to=MAD&country=FR&infants=0&children=0&fromDay=16&opensearchform=true&tab=cal",
"http://www.transavia.com/hv/main/nav/processflightqry?toDay=23&toMonth=2014-04&lang=fr&adults=1&from=ORY&fromMonth=2014-04&to=PRG&country=FR&infants=0&children=0&fromDay=16&opensearchform=true&tab=cal",
"http://www.transavia.com/hv/main/nav/processflightqry?toDay=23&toMonth=2014-04&lang=fr&adults=1&from=ORY&fromMonth=2014-04&to=SAW&country=FR&infants=0&children=0&fromDay=16&opensearchform=true&tab=cal",
"http://www.transavia.com/hv/main/page?id=destinations&lang=fr&country=FR"
]
$(document).ready(function()
{
$(window).load(function()
{
resetPrice();
// start the banner //
_frames = ["trip1","trip2","trip3","lastFrame"];
for(var i = 0;i<_frames.length;i++)
{
$("#"+_frames[i]).css({opacity:0})
}
//$("#lastFrame").css({opacity:0})
animate();
$("#cover").click(function()
{
gotoActiveLink();
})
})
function gotoActiveLink()
{
console.log("active link",_activeLink);
window.location.href = _links[_activeLink]
}
})
</script>
$(window).loadinside$(document).ready()unless you are waiting for images to load completely too (which can take a lot longer than initial page load).