Author Topic: Ajax-Effect  (Read 8647 times)

0 Members and 1 Guest are viewing this topic.

Offline thomasb

  • Pre-Newbie
  • Posts: 5
    • View Profile
Ajax-Effect
« on: February 12, 2008, 07:58:32 AM »
Wer modifiziert mir meine Homepage www.galerie-jumpy.de so, dass bei einem Klick auf die Thumbnails die Grossansicht
des Bildes mittig am Desktop im Ajax-Effekt erscheint?

Anybody here wo modifies my homepage with the Ajax-Effect?
The popup should display in the middle of the desktop with darkende background.

Danke und Gruss, Thomas

Offline honda2000

  • 4images Guru
  • *******
  • Posts: 3.263
    • View Profile
    • Wir machen Internet!
Re: Ajax-Effect
« Reply #1 on: February 12, 2008, 08:44:32 AM »
im prinzip ist das recht einfach

du musst nur die Parameter des Javascript open(popup) etwas erweitern

guck mal hier:

 http://www.drweb.de/javascript/popup.shtml

du kannst auch hier: http://www.webmaster-resource.de/tricks/javascript/popup-fenster-erstellen.php nachlesen, popup mittig ausrichten

ein einfacher Code, teils in die header.html, teils in den Body-Tag, teils in die detail.html

Code: [Select]
<head>
  <script type="text/javascript">
    function popup() {
      var winWidth = 700;
      var winHeight = 500;
      var winLeft = Math.round((screen.width - winWidth) / 2);
      var winTop= Math.round((screen.height - winHeight) / 2);
      var win = window.open('meineurl.html', 'meinbezeichner', 'width=' + winWidth + ',height=' + winHeight + ',left=' + winLeft + ',top=' + winTop);
    }
  </script>
</head>
<body>
  <a href="meineurl.html" target="_blank" onclick="popup(); return false;"><img src=".." /></a>
</body>

Offline thomasb

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: Ajax-Effect
« Reply #2 on: February 12, 2008, 09:02:51 AM »
Danke für die Antwort!

Könntest Du das für mich machen? Nicht umsonst.
Es ist Jahre her, dass ich mit html zu tun hatte und Javascript sagt mir gar nichts.

Würde Dir das Passwort zum FTP geben.

Viele Grüsse, Thomas

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Ajax-Effect
« Reply #3 on: February 12, 2008, 09:11:02 AM »
... oder versuche das hier ... Addon, Highslide from Thumbnail Image ...
... http://www.4homepages.de/forum/index.php?topic=20461.0 ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline honda2000

  • 4images Guru
  • *******
  • Posts: 3.263
    • View Profile
    • Wir machen Internet!
Re: Ajax-Effect
« Reply #4 on: February 12, 2008, 10:59:25 AM »
das ist ja sogar noch besser
und recht einfach einzubauen