I've never built Javascript before :P So bear with me. It's only recently that I learned the barebones of C++, so this stuff looks a little more understandable to me. I figured I'd tinker around a bit.
Looking at the script I made, you can understand what I want it to do. But it's just.. not. working. T__T And I don't see where I went wrong, which is probably the problem, lol.
So anyway, here it is..
<script language="Javascript">
if (screen.width == 1024) && (navigator.appName == "Microsoft Internet Explorer") {
document.location = "[link]";
}
else if (screen.width == 1024) && !(navigator.appName == "Microsoft Internet Explorer"){
window.location = "[link]";
}
else if !(screen.width == 1024) && (navigator.appName == "Microsoft Internet Explorer"){
window.location = "[link]";
}
else if !(screen.width == 1024) && !(navigator.appName == "Microsoft Internet Explorer"){
window.location = "[link]";
</script>
If anyone could point me in the right direction, that would be great =) Thank you!



Reply With Quote

Bookmarks