1
Mods & Plugins (Releases & Support) / Re: [MOD] Slideshow II
« on: November 28, 2006, 12:35:11 AM »
Also, ich hatte das gleiche Problem wie du. Ich habe das ScriptProblem schnell beseitigt. Du musst den Teil, der in die header.html soll nicht ans Ende selbiger kopieren, sondern vor das </script>-Tag (sollte mit der im Editor eingebauten Suche schnell zu finden sein ). Dann solltest du aus
machen!
Im Endeffekt sollte das hier dann da stehen:
Gelöscht habe ich nichts!
Solltest du dann noch einen MySQL Fehler kriegen, meld dich einfach bei mir
Code: [Select]
<script language="JavaScript" type="text/javascript" src="{template_url}/../../scripts/4images.js"></script>
Code: [Select]
<script language="JavaScript" type="text/javascript" src="{template_url}/../../scripts/slideshow.js"></script>
machen!
Im Endeffekt sollte das hier dann da stehen:
Code: [Select]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{direction}">
<head>
<title>{site_name}</title>
<meta http-equiv="content-type" content="text/html; charset={charset}" />
<link rel="stylesheet" href="{template_url}/style.css" />
<script language="JavaScript" type="text/javascript" src="{template_url}/../../scripts/slideshow.js"></script>
<script language="javascript" type="text/javascript">
<!--
var captcha_reload_count = 0;
var captcha_image_url = "{url_captcha_image}";
function new_captcha_image() {
if (captcha_image_url.indexOf('?') == -1) {
document.getElementById('captcha_image').src= captcha_image_url+'?c='+captcha_reload_count;
} else {
document.getElementById('captcha_image').src= captcha_image_url+'&c='+captcha_reload_count;
}
document.getElementById('captcha_input').value="";
document.getElementById('captcha_input').focus();
captcha_reload_count++;
}
function opendetailwindow() {
window.open('','detailwindow','toolbar=no,scrollbars=yes,resizable=no,width=680,height=480');
}
function right(e) {
if ((document.layers || (document.getElementById && !document.all)) && (e.which == 2 || e.which == 3)) {
alert("© Copyright by {site_name}");
return false;
}
else if (event.button == 2 || event.button == 3) {
alert("© Copyright by {site_name}");
return false;
}
return true;
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown = right;
}
else if (document.all && !document.getElementById){
document.onmousedown = right;
}
document.oncontextmenu = new Function("alert('© Copyright by {site_name}');return false");
//-----------------------------------------------------
//--- Slideshow changes -------------------------------
//-----------------------------------------------------
function openslideshow(url,window_width,window_height,new_window) {
if (new_window == 2 || new_window == 1) {
var width_avail = screen.availWidth-15;
var height_avail = screen.availHeight-60;
var width_full = screen.width;
var height_full = screen.height;
// Callculate the spaces from left and top to center the new window:
var left_space = ((width_avail - window_width) > 0) ? parseInt((width_avail - window_width) / 2) : 0;
var top_space = ((height_avail - window_height) > 0) ? parseInt((height_avail - window_height) / 2) : 0;
if (new_window == 2) {
window_width = width_avail;
window_height = height_avail;
left_space = 0;
top_space = 0;
url += "&maw="+(window_width-97)+"&mah="+(window_height-194)+"&msw="+width_full+"&msh="+height_full;
} // if complete picture (whole window)
slideshow_window = window.open(url,"slideshowwindow","resizable=yes,dependent=yes,hotkeys=no,location=no,menubar=no,scrollbars=yes,status=yes,toolbar=no,width="+window_width+",height="+window_height+",left="+left_space+",top="+top_space+"");
} // if new_window
else {
window.location.href=url;
} // else new_window
} // openslideshow
// -->
</script>
{if has_rss}
<link rel="alternate" type="application/rss+xml" title="{rss_title}" href="{rss_url}" />
{endif has_rss}
</head>
<body bgcolor="#FFFFFF" text="#0F5475" link="#0F5475" vlink="#0F5475" alink="#0F5475">
<br />
Gelöscht habe ich nichts!
Solltest du dann noch einen MySQL Fehler kriegen, meld dich einfach bei mir