Author Topic: random header graphic  (Read 6793 times)

0 Members and 1 Guest are viewing this topic.

KGF

  • ezCustomer
  • *****
  • Posts: 100
random header graphic
« on: October 14, 2014, 07:44:43 am »
hello,
I have made a random header graphic, with a small javascript and it works on normal pages: http://www.photoplaca.com/index.php or http://www.photoplaca.com/index.php?action=gallery;su=user;sa=userlist

but on the optional pages (Service, Fotografie, Impressum) following happens:
http://www.photoplaca.com/pages/Service.php
http://www.photoplaca.com/pages/Fotografie.php
http://www.photoplaca.com/pages/Impressum.php

what's wrong?
« Last Edit: October 14, 2014, 07:49:36 am by KGF »

ezCommunitySuite

  • Administrator
  • *****
  • Posts: 241
    • ezCommunitySuite
Re: random header graphic
« Reply #1 on: October 14, 2014, 07:56:46 am »
You need to put the full picture page
/templates/photoplaca/images/banner-viplounge-technik-00.png
Change to
http://www.photoplaca.com/templates/photoplaca/images/banner-viplounge-technik-00.png

KGF

  • ezCustomer
  • *****
  • Posts: 100
Re: random header graphic
« Reply #2 on: October 15, 2014, 01:36:55 am »
yes, the graphic and Links now works.
but the template is not display.
here is my script:
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
<td width="100%" colspan="3" style="text-align: center"><script language="JavaScript" type="text/javascript">
            <!--
            var image = new Array();
            var link  = new Array();
            /** Hier die (Zufalls)-Bilder eintragen. **/
            image[01] = 'http://www.photoplaca.com/templates/photoplaca/images/banner.png'; link[01] = './index.php';
            image[02] = 'http://www.photoplaca.com/templates/photoplaca/images/banner-viplounge-00.png'; link[02] = 'http://www.photoplaca.com/';
            image[03] = 'http://www.photoplaca.com/templates/photoplaca/images/banner-viplounge-abstrakt-00.png'; link[03] = 'http://www.photoplaca.com/';
            image[04] = 'http://www.photoplaca.com/templates/photoplaca/images/banner-viplounge-akt-00.png'; link[04] = 'http://www.photoplaca.com/';
            image[05] = 'http://www.photoplaca.com/templates/photoplaca/images/banner-viplounge-allgemein-00.png'; link[05] = 'http://www.photoplaca.com/';
            image[06] = 'http://www.photoplaca.com/templates/photoplaca/images/banner-viplounge-architektur-00.png'; link[06] = 'http://www.photoplaca.com/';
            image[07] = 'http://www.photoplaca.com/templates/photoplaca/images/banner-viplounge-digitally-00.png'; link[07] = 'http://www.photoplaca.com/';
            image[08] = 'http://www.photoplaca.com/templates/photoplaca/images/banner-viplounge-entertainment-00.png'; link[08] = 'http://www.photoplaca.com/';
            image[09] = 'http://www.photoplaca.com/templates/photoplaca/images/banner-viplounge-erotik-00.png'; link[09] = 'http://www.photoplaca.com/';
            image[10] = 'http://www.photoplaca.com/templates/photoplaca/images/banner-viplounge-lifestyle-00.png'; link[10] = 'http://www.photoplaca.com/';
            image[11] = 'http://www.photoplaca.com/templates/photoplaca/images/banner-viplounge-natur-00.png'; link[11] = 'http://www.photoplaca.com/';
            image[12] = 'http://www.photoplaca.com/templates/photoplaca/images/banner-viplounge-privat-00.png'; link[12] = 'http://www.photoplaca.com/';
            image[13] = 'http://www.photoplaca.com/templates/photoplaca/images/banner-viplounge-sport-00.png'; link[13] = 'http://www.photoplaca.com/';
            image[14] = 'http://www.photoplaca.com/templates/photoplaca/images/banner-viplounge-technik-00.png'; link[14] = 'http://www.photoplaca.com/';
            image[15] = 'http://www.photoplaca.com/templates/photoplaca/images/banner-viplounge-tiere-00.png'; link[15] = 'http://www.photoplaca.com/';
            image[16] = 'http://www.photoplaca.com/templates/photoplaca/images/banner-viplounge-touristik-00.png'; link[16] = 'http://www.photoplaca.com/';
            image[17] = 'http://www.photoplaca.com/templates/photoplaca/images/banner-viplounge-webdesign-00.png'; link[17] = 'http://www.photoplaca.com/';
            /** Ab hier nichts mehr ändern! **/
            var num = Math.random();
            var ran = Math.floor((image.length - 1) * num) + 1;
            document.write('<a href="' + link[ran] + '"><img src="' + image[ran] + '" width="1000" height="150" border="0px solid #555555" /></a>');
            //-->
            </script>
            </td>
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
« Last Edit: October 15, 2014, 02:14:00 am by KGF »

ezCommunitySuite

  • Administrator
  • *****
  • Posts: 241
    • ezCommunitySuite
Re: random header graphic
« Reply #3 on: October 15, 2014, 07:25:14 am »
Well the issue with these pages http://www.photoplaca.com/pages/Service.php
Is you need to change the header.htm in tmplates folder

Code: [Select]
<link rel="stylesheet" type="text/css" media="screen" href="templates/photoplaca/stylesheets/screen.css" />
<script type="text/javascript" src="templates/photoplaca/scripts/scripts.js"></script>

To
Code: [Select]
<link rel="stylesheet" type="text/css" media="screen" href="http://www.photoplaca.com/templates/photoplaca/stylesheets/screen.css" />
<script type="text/javascript" src="http://www.photoplaca.com/templates/photoplaca/scripts/scripts.js"></script>

KGF

  • ezCustomer
  • *****
  • Posts: 100
Re: random header graphic
« Reply #4 on: October 15, 2014, 05:03:49 pm »
Oh my God,
many thanks,
sorry,
I missed this ..

it works  :-)

 

Related Topics

  Subject / Started by Replies Last post
10 Replies
36146 Views
Last post October 13, 2014, 09:46:08 am
by KGF

© 2024 ezCommunitySuite