vBulletin Search Engine Optimization
This is a discussion on Body Onload Issue within the Troubleshooting forums, part of the vBSEO SEO Plugin category; Hello, everyone. I'm having an issue which I believe is stemming from VBSEO , and I can't seem to figure ...
| |||||||
Enhancing 80 million pages. | Register | FAQ | Members List | Social Groups | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| Body Onload Issue
Hello, everyone. I'm having an issue which I believe is stemming from VBSEO, and I can't seem to figure it out. I've got an image rotation script I use on my site which requires onload="adrotate()" to be in the body tag. <body onload="adrotate()"> It used to work fine, and the Styles & Templates > Replacement Variable Manager was replacing the code properly. At some point (though we noticed it today, we're not sure exactly when it started), the body tag now loads as the following: <body onload="if (is_ie || is_moz) { var cpost=document.location.hash;if(cpost){ if(cobj = fetch_object(cpost.substring(1,cpost.length)))cobj .scrollIntoView(true); }}"> As you can see, there's no reference to the aforementioned onload element we need; and any attempt to replace the above line of code to add the needed code for my image rotation script either displays part of the above code, or doesn't show the needed code in the source at all. And I can't figure out where the "onload/if" code is coming from. Can anyone give me a heads-up as to how this code is appearing, what it's used for, and how to add the bit of code I need? Thanks in advance. |
|
#2
| ||||
| ||||
|
you should never use body onload. it's deprecated. maybe one day vb will catch up with the times.... i doubt it though :( use a linked function in a remote file, ie, script.js Code: function myname() {
//do stuff
}
window.onload = function myname;
|
|
#3
| |||
| |||
|
I've tried this, and while 99% of the script is in a remote .js file, it doesn't appear to be working. The window.onload does not appear to be working like the body onload was. I am still perplexed where this mystery body onload is coming from though. <body onload="if (is_ie || is_moz) { var cpost=document.location.hash;if(cpost){ if(cobj = fetch_object(cpost.substring(1,cpost.length)))cobj .scrollIntoView(true); }}"> I can't find any reference to where it's being created anywhere. |
|
#4
| ||||
| ||||
|
it's probably from a bad .org mod/add on.
|
|
#5
| ||||
| ||||
|
Please open a ticket with admincp access to check the issue.
__________________ Oleg Ignatiuk / Crawlability Inc. Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations 6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You. |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| some body help me ?? | CuTe JoJo | Troubleshooting | 2 | 07-08-2008 09:55 AM |
| F-Body Online study | Rocket 442 | vBSEO Reviews | 18 | 06-22-2008 01:12 PM |
| F-Body Online Critique | Rocket 442 | Critique Please | 1 | 12-29-2007 06:32 PM |
| marhaba every body | uaefist | Introduce Yourself | 5 | 07-01-2007 03:20 AM |