Hallo zusammen,
ich bin php-änfänger und kriege dieses jquery script siehe ->http://www.no-margin-for-errors.com/projects/prettypopin/ nicht in mein footer integriert.
wenn man auf "impressum" klickt, soll dieser effekt passieren.
kann mir da einer bitte helfen.
ich habe es so versucht: footer.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>jQuery popin solution - prettyPopin - by Stephane Caron</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript" charset="utf-8">
google.load("jquery", "1.3");
</script>
<link rel="stylesheet" href="css/prettyPopin.css" type="text/css" media="screen" charset="utf-8" />
<script src="js/jquery.prettyPopin.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<!-- end of #main -->
<div id="foot">
<div class="container_12">
<div class="grid_3 formatted">
<?php
$siteurl = get_option('siteurl');
if (function_exists('dynamic_sidebar') && dynamic_sidebar('Footer Column 1')) {}
else { echo "<h4>FOOTER COLUMN 1</h4><p><a href='$siteurl/wp-admin/widgets.php'>Widgetize this sidebar</a></p>"; }
?>
</div>
<div class="grid_3 formatted">
<?php
if (function_exists('dynamic_sidebar') && dynamic_sidebar('Footer Column 2')) {}
else { echo "<h4>FOOTER COLUMN 2</h4><p><a href='$siteurl/wp-admin/widgets.php'>Widgetize this sidebar</a></p>"; }
?>
</div>
<div class="grid_3 formatted">
<?php
if (function_exists('dynamic_sidebar') && dynamic_sidebar('Footer Column 3')) {}
else { echo "<h4>FOOTER COLUMN 3</h4><p><a href='$siteurl/wp-admin/widgets.php'>Widgetize this sidebar</a></p>"; }
?>
</div>
<div class="grid_3 formatted">
<?php
if (function_exists('dynamic_sidebar') && dynamic_sidebar('Footer Column 4')) {}
else { echo "<h4>FOOTER COLUMN 4</h4><p><a href='$siteurl/wp-admin/widgets.php'>Widgetize this sidebar</a></p>"; }
?>
</div>
<div class="clear">
</div>
<!-- end of grid row -->
<div class="grid_9">
<p>
<?php echo get_key('Footer', 'copyright', 'Copyright ©2009 <a href="bluey.eu">Bluey.eu</a>') . add_new_line(0); ?>
</p>
</div>
<div id="impressumPopup" class="grid_3" style="text-align:right;">
<a href="http://www.google.de" rel="prettyPopin">Impressum</a>
</div>
<div class="clear">
</div>
<!-- end of grid row -->
</div>
</div>
<!-- end of #foot -->
<?php if (get_key('General', 'google_analytics_id', '') != '') : ?>
<!-- end of Google tracking code -->
<?php endif; ?>
<?php wp_footer(); ?>
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
$("a[rel^='prettyPopin']:eq(0)").prettyPopin({width: 550,followScroll:false});
$("a[rel^='prettyPopin']:eq(1)").prettyPopin({width:300});
$("a[rel^='prettyPopin']:eq(2)").prettyPopin({
callback : function(){
alert('This popin has a callback');
}
});
});
</script>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-122908-8");
pageTracker._trackPageview();
} catch(err) {}</script>
</body>
</html>
Alles anzeigen
leider ohne Erfolg
vielen dank
gruß
Jan Hahn
anbei lege ich in einer.Rar datei die original footer php datei