I have this script
$(document).ready(function() {
setInterval(function() {
if ($('#myfooter').css('visibility') == 'hidden'){
document.location.href = "http://www.templatezy.com";
}
}, 3000)
})
Since the above script have only css property "visibility:hidden" while i also want to include "visibility:collapse" property in the script by using OR operator.
So can anyone provide me coding something like below example.
$(document).ready(function() {
setInterval(function() {
if ($('#myfooter').css('visibility') == 'hidden')||.css('visibility') == 'collapse'){
document.location.href = "http://www.templatezy.com";
}
}, 3000)
})
This one is just example it does not work. I just share idea what i want..I want to use OR operator rather than using separate script for "visibility:collapse". i hope you guys will add OR operator in the existing script by adding "visibitity:collapse" proeprty too. thanks
**
OR
** Guys You can see here.. i shared both script below...now make it one script by adjusting visibility:hidden and visibility:collapse property in one line. I hope you can now understand...using two script will increase coding make it one by using these two css property in one line. thanks
$(document).ready(function() {
setInterval(function() {
if ($('#myfooter').css('visibility') == 'hidden') {
document.location.href = "http://www.templatezy.com";
}
}, 3000)
})
$(document).ready(function() {
setInterval(function() {
if ($('#myfooter').css('visibility') == 'collapse') {
document.location.href = "http://www.templatezy.com";
}
}, 3000)
})