3
Contributors
3
Replies
27
Views
3 Years
Discussion Span
Last Post by almostbob
0

You can't really make transitions between two pages, but you can give a better impression with something like this.

// Hide your main div when leaving the page
window.onbeforeunload = function() {
    $("#myMainDiv").hide('fade');
};

// Shows your man div when loading the page
window.onload = function() {
    $("#myMainDiv").show('slide');
};
1

it is javascript,
it will not work all the time, (IE<9 of course, or high security settings), when it does work (justabout everything else) it is effective.
it may add to apparent page load time,

onload and onunload scripts, are often considered malware, as the popup porn industry, and may get, if used injudiciously, any external code, penalised delisting from ser,

NOT displaying the most important part of the page immediately, kills user retention, the user wants the content NOW thats what they came for, display everything else whenever you like

Edited by almostbob

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.