Well, just use my example link and code from my first post in this thread. Only instead of doing:
Code:
if(getQval('var1')){
alert(getQval('var1'));
}
do whatever it takes to expand that div. I don't know because I don't have your code. Lets say your expand function is called expandit.
You would want something like so:
Code:
onload = function(){
if(getQval('var1')){
expandit(getQval('var1'));
}
}
Or, if you want to be sure it doesn't conflict with other onload events:
Code:
if(getQval('var1')){
(function(){
function init(){
expandit(getQval('var1'));
}
if (window.addEventListener){
window.addEventListener('load', init, false);
}
else if (window.attachEvent){
window.attachEvent('onload', init);
}
})();
}
If you want more help:
Please post a link to a page on your site that contains the problematic code so we can check it out.
Bookmarks