1
starduster
Alternative myalbum popup?
  • 2007/1/17 4:20

  • starduster

  • Just popping in

  • Posts: 24

  • Since: 2005/10/5


I was wondering if it is possible to make a custom popup for the images but instead of filling the width and height fully regarding the popup. There could be html to hold other content above and below.

A bit like using something along these lines using document.write from this website


function dirtypop()
{
  var 
generator=window.open('','name','height=600,width='960');
  
  generator.document.write('
<html><head><title>Popuptitle>');
  generator.document.write('
<link rel="stylesheet" href="style.css">');
  generator.document.write('
head><body>');
  generator.document.write('
<p>This page was generated by
    the main window
.p>');
  generator.document.write('
<p><a href="javascript:self.close()">
    
Closeathe popup.p>');
  generator.document.write('
body>html>');
  generator.document.close();
}


I had a try the other day there but had no luck trying to use <{$photo.ahref_photo}> in the normal popup code I got as close as 2 popups but no html.

The normal popup code is below and I'm not even sure if it's possible with myalbum.
<a href="<{$photo.ahref_photo}>" target="_blank" onClick="window.open('<{$photo.ahref_photo}>','','width=<{$photo.window_x}>,height=<{$photo.window_y}>,scrollbars,');return(false);">
<
img src="<{$photo.imgsrc_photo}>" border="0" align="center" vspace="3" hspace="7" alt="<{$photo.title}>" title="<{$photo.title}>" <{$photo.width_height}> />a>div>


Any help trying to piece this together would be great.

Cheers

Login

Who's Online

415 user(s) are online (152 user(s) are browsing Support Forums)


Members: 0


Guests: 415


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Aug 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits