/include/templates/user/gallery.htm
Zitat
betroffene Homepage: externer Link
Hier kann eine Notiz zum Merk-Eintrag hinzugefügt werden (optional)
Geschlossen |
<table width="100%" class="border" border="0" cellspacing="1" cellpadding="3"> <tr class="Chead"> <td colspan="{imgperline}" align="center"><b>{uname}</b></td> </tr> <tr> {EXPLODE} <td class="{class}" width="{width}%" valign="top" align="center"> <table id="galimages" class="border" border="0" cellspacing="1" cellpadding="0"> <tr> <td><a rel="galimagesrel" target="_blank" href="include/images/usergallery/img_{id}.{endung}"><img src="include/images/usergallery/img_thumb_{id}.{endung}" border="0" alt="{name}" title="{name}" /></a></td> </tr> </table> {besch} </td> {EXPLODE} </tr> </table> <center>{MPL}</center> {EXPLODE} <br /><br /> <form action="index.php?user-usergallery-{uid}" method="POST" enctype="multipart/form-data"> <input type="hidden" name="gesendet" value="yes" /> <fieldset> <legend><b>{_lang_pictureupload}</b></legend> <input type="file" size="40" name="file" style="margin-top:5px;" /> <input size="60" name="text" maxlength="255" style="margin-top:5px;" /><br /> <input type="submit" value="{_lang_formsub}" style="margin-top:5px;" /> </fieldset> </form> {EXPLODE} {x}
var ersatz = document.createElement('a'); ersatz.setAttribute('href',src); ersatz.setAttribute('target','_blank'); var newImg = document.createElement('img'); newImg.setAttribute('src',src); newImg.setAttribute('width',w); newImg.setAttribute('height',h); newImg.setAttribute('border','0'); newImg.setAttribute('style',img.getAttribute('style',0)); ersatz.appendChild(newImg); img.parentNode.replaceChild(ersatz,img);
var ersatz = document.createElement('a'); ersatz.setAttribute('href',src); var newImg = document.createElement('img'); newImg.setAttribute('src',src); newImg.setAttribute('width',w); newImg.setAttribute('height',h); newImg.setAttribute('border','0'); newImg.setAttribute('style',img.getAttribute('style',0)); ersatz.appendChild(newImg); img.parentNode.replaceChild(ersatz,img); $(ersatz).fancybox ();
function addEvent(elm, evType, fn, useCapture) // addEvent and removeEvent // cross-browser event handling for IE5+, NS6 and Mozilla // By Scott Andrew { if (elm.addEventListener){ elm.addEventListener(evType, fn, useCapture); return true; } else if (elm.attachEvent){ var r = elm.attachEvent("on"+evType, fn); return r; } else { alert("Handler could not be removed"); } } addEvent(window, "load", ResizeBBCodeImages); //Funktion die alle Bilder des BBCodes der Funktion SetSize übergibt function ResizeBBCodeImages() { imgs = document.getElementsByTagName("img"); for (ti=0;ti<imgs.length;ti++) { if (imgs[ti].className.indexOf("bbcode_image") != -1) { SetSize(imgs[ti]); } } } //Funktion zum Ändern der Bildgröße für zu große Bilder function SetSize(img){ var w = img.width; var h = img.height; var toChange = false; if (w>bbcodemaximagewidth) { h = bbcodemaximagewidth * h / w; w = bbcodemaximagewidth; toChange = true; } if (h>bbcodemaximageheight) { w = bbcodemaximageheight * w / h; h = bbcodemaximageheight; toChange = true; } if (toChange) { var src = img.getAttribute('src'); if ( img.parentNode.nodeName.toLowerCase() == 'a' ) { img.setAttribute('width',w); img.setAttribute('height',h); } else { var ersatz = document.createElement('a'); ersatz.setAttribute('href',src); var newImg = document.createElement('img'); newImg.setAttribute('src',src); newImg.setAttribute('width',w); newImg.setAttribute('height',h); newImg.setAttribute('border','0'); newImg.setAttribute('style',img.getAttribute('style',0)); ersatz.appendChild(newImg); img.parentNode.replaceChild(ersatz,img); $(ersatz).fancybox (); } } } //Funktion für BBCode Klapptext function Klapptext(str) { var KlappText = document.getElementById('layer_'+str); var KlappBild = document.getElementById('image_'+str); var medientuner_minus= "include/images/icons/minus.gif", medientuner_plus="include/images/icons/plus.gif"; if (KlappText.style.display == 'none') { KlappText.style.display = 'block'; KlappBild.src = medientuner_minus; } else { KlappText.style.display = 'none'; KlappBild.src = medientuner_plus; } }
function addEvent(elm, evType, fn, useCapture) // addEvent and removeEvent // cross-browser event handling for IE5+, NS6 and Mozilla // By Scott Andrew { if (elm.addEventListener){ elm.addEventListener(evType, fn, useCapture); return true; } else if (elm.attachEvent){ var r = elm.attachEvent("on"+evType, fn); return r; } else { alert("Handler could not be removed"); } } addEvent(window, "load", ResizeBBCodeImages); //Funktion die alle Bilder des BBCodes der Funktion SetSize übergibt function ResizeBBCodeImages() { imgs = document.getElementsByTagName("img"); for (ti=0;ti<imgs.length;ti++) { if (imgs[ti].className.indexOf("bbcode_image") != -1) { SetSize(imgs[ti]); } } } //Funktion zum Ändern der Bildgröße für zu große Bilder function SetSize(img){ var w = img.width; var h = img.height; var toChange = false; if (w>bbcodemaximagewidth) { h = bbcodemaximagewidth * h / w; w = bbcodemaximagewidth; toChange = true; } if (h>bbcodemaximageheight) { w = bbcodemaximageheight * w / h; h = bbcodemaximageheight; toChange = true; } if (toChange) { var src = img.getAttribute('src'); if ( img.parentNode.nodeName.toLowerCase() == 'a' ) { img.setAttribute('width',w); img.setAttribute('height',h); } else { var ersatz = document.createElement('a'); ersatz.setAttribute('href',src); var newImg = document.createElement('img'); newImg.setAttribute('src',src); newImg.setAttribute('width',w); newImg.setAttribute('height',h); newImg.setAttribute('border','0'); newImg.setAttribute('style',img.getAttribute('style',0)); ersatz.appendChild(newImg); img.parentNode.replaceChild(ersatz,img); $(ersatz).fancybox (); } } } //Funktion für BBCode Klapptext function Klapptext(str) { var KlappText = document.getElementById('layer_'+str); var KlappBild = document.getElementById('image_'+str); var medientuner_minus= "include/images/icons/minus.gif", medientuner_plus="include/images/icons/plus.gif"; if (KlappText.style.display == 'none') { KlappText.style.display = 'block'; KlappBild.src = medientuner_minus; } else { KlappText.style.display = 'none'; KlappBild.src = medientuner_plus; } } blink(0.7); function blink(speed) { if (speed) { if (document.all) setInterval("blink()", speed*1000) return; } var blink = document.all.tags("BLINK") for (var i=0; i<blink.length; i++) blink[i].style.visibility = blink[i].style.visibility == "" ? "hidden" : "" } window.onload = function() { var texts = document.getElementsByTagName("rainbow"); for (ti=0;ti<texts.length;ti++) { var searchedTag = texts[ti]; var searchedString = searchedTag.innerHTML; var strArray = searchedString.split(''); for (var i=0;i<strArray.length;i++) { strArray[i]="<span style='color:rgb("+Math.floor(Math.random()*255)+","+Math.floor(Math.random()*255)+","+Math.floor(Math.random()*255)+")'>"+strArray[i]+"</span>"; } var finalString = strArray.join(''); searchedTag.innerHTML = finalString; }}
Geschlossen | ||
Zurück zu Fehlersuche und Probleme |