ckroon
Posts: 869
|
Posted: 02/17/2015, 7:11 PM |
|
CCS 5 is drivng me crazy.. I am trying to implement floatbox for modal windows.
When I add
<script src="my_js/floatbox/floatbox.js"></script>
<script>
fbPageOptions = {
shadowType: 'halo',
resizeTime: 0.1,
transitionTime: 0.1,
overlayFadeTime: 0.1,
navType: 'both'
};
</script>
To my header... it goes a bit wonky and adds these lines:
{page:scriptIncludes}
and then several:
<script type="text/javascript">
//End Include Common JSFunctions
//Include User Scripts @1-12E26AAF
</script>
Anyhow it breaks the javascript for the floatbox.
Anyone have a workaround?
_________________
Walter Kempees...you are dearly missed. |
|
|
PCHome
Posts: 57
|
Posted: 02/17/2015, 8:55 PM |
|
I've often had better luck including external scripts rather than coding them directly into the header. I've not used it but I believe there is also an event type for adding such things.
|
|
|
eratech
Posts: 513
|
Posted: 02/17/2015, 11:14 PM |
|
Agree with PCHome - I generally stay out of the header and put my extra JS in at the bottom of the page, and usually as a separate page include.
"Let CodeCharge be CodeCharge... and don't touch it's code"
E
_________________
CCS 3/4/5 ASP Classic, VB.NET, PHP
Melbourne, Victoria, Australia |
|
|
ckroon
Posts: 869
|
Posted: 02/18/2015, 11:31 AM |
|
That did the trick!
Thanks guys
_________________
Walter Kempees...you are dearly missed. |
|
|
|