WebPagetest Forums

Full Version: Need PHP help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey can some one help me out I'm trying put this on my website but when it's in php code I get errors so can some help me out to make it work in php code

<script type="text/javascript">
$(document).ready(function() {
$("a.zoom").fancybox();

$("a.zoom1").fancybox({
'overlayOpacity' : 0.7,
'overlayColor' : '#000000'
});

$("a.zoom2").fancybox({
'zoomSpeedIn' : 500,
'zoomSpeedOut' : 500
});
});
</script>
Can you upload your actual php file? That is straight html and needs to be outside of a php block. i.e.:

...php code
?>

insert your html here

<?php
.. continue the php code

You can also echo or print it (or if you are using a CMS they have different ways to take the output).
Reference URL's