![]() Topic awaiting preservation: Pictures, Pop-ups and learning. (Page 1 of 1)  | 
  |
|---|---|
| 
       Neurotic (0) Inmate Newly admitted  | 
    
       
  posted 11-26-2001 15:53
      
      I know I know. I hate pop-ups too, but I think this will work better than having them go to a complete diffrent page. Want I want to do is have them click on a thumbnail of a picture and have a pop-up the exact size of the orginal picture come up. I know a site that does this and I can view the view source, but I'd really like to learn what makes this work and besides..who want to cut out all that useless code. Take a look here to see what I mean. I think those pop-ups use a offline JS.  | 
  
| 
       Neurotic (0) Inmate Newly admitted  | 
    
       
  posted 11-26-2001 15:56
      
      Wait...........is this that javascript? code: <script language="JavaScript"> 
 code: <a href="#studio" onClick="MM_openBrWindow('studio2-01/dave2.jpg','','width=487,height=380')"><img src="studio2-01/tn_dave2.jpg" width="100" height="100" hspace="5" border="0"></a>
  | 
  
| 
       Neurotic (0) Inmate Newly admitted  | 
    
       
  posted 11-26-2001 16:20
      
      Nope that didn't work.  Maybe I just don't understand calling a new window. code: <a href="Thepage.htm" target="anotherWindowName">Open new window</a> 
 code: <a href="#" onClick="MM_openBrWindow('studio2-01/dave2.jpg','','width=487,height=380')">
  | 
  
| 
       Maniac (V) Inmate From: there...no..there.....  | 
    
       
  posted 11-26-2001 16:27
      
      Are you talking to yourself again Dark    | 
  
| 
       Neurotic (0) Inmate Newly admitted  | 
    
       
  posted 11-26-2001 16:39
      
      Yes an no. Go here and look at the pop-ups on the pictures. It looks simple enough... and though a flip book would be cool for later use. That's not what I am looking for right now    | 
  
| 
       Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing  | 
    
       
  posted 11-26-2001 17:09
      
      Dark: If I understand your question correctly then this is pretty standard fare (and is a reasonable use of pop ups although I can think of more interesting ways to do such a thing - I'd have a central picture which you could swap to the desired full size version from the thumbnails, for example). Have a look at this:  | 
  
| 
       Neurotic (0) Inmate Newly admitted  | 
    
       
  posted 11-26-2001 17:24
      
      Hey now this is pretty neat and exactly what I was looking for     | 
  
| 
       Maniac (V) Inmate From: there...no..there.....  | 
    
       
  posted 11-26-2001 17:38
      
      Yeah that is something like what I used, but I made some variables for URL's so I didn't have to rewrite the code depending on which pic was clicked. quote: 
  | 
  
| 
       Neurotic (0) Inmate Newly admitted  | 
    
       
  posted 11-26-2001 17:42
      
      I understand perfectly    | 
  
| 
       Neurotic (0) Inmate Newly admitted  | 
    
       
  posted 11-27-2001 04:21
      
      Ok now that works I wanna try some other things......  | 
  
| 
       Maniac (V) Mad Scientist From: New California  | 
    
       
  posted 11-28-2001 09:22
      
      Dark,  | 
  
| 
       Neurotic (0) Inmate Newly admitted  | 
    
       
  posted 11-28-2001 17:43
      
      Hey that's neat also! haha I really like the "resize" function, because on emps script I had to resize all the pictures to whatever I wrote in the script, but is there a simple way to make the picture "slide" in on either of these scripts? Thanks Bug + Emp  | 
  
| 
       Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing  | 
    
       
  posted 11-28-2001 18:11
      
      Dark: I should say that the pop up script generator is the work of Pugzly (there are a number out there but it is the best one I've seen). It depends on how you are going to implement the code - if its on a page like Bugs has then that solution is good if its purely for a page of thumbnails then there are probably more interesting solutions. The window resize idea is interesting and throwing in a bit of PHP to get the image size being loaded would trim down the code and make things a little more flexible. I still like the idea of swapping a main image on the clicking of a thumbnail (search the archives - I threw a brief example of code).  | 
  
| 
       Neurotic (0) Inmate Newly admitted  | 
    
       
  posted 11-28-2001 18:33
      
      I should have explained that I want both      | 
  
| 
       Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing  | 
    
       
  posted 11-28-2001 18:44
      
      Dark: We may be talking at cross purposes - hopefully the email I sent explained things a little better but I'll run through it again.  | 
  
| 
       Neurotic (0) Inmate Newly admitted  | 
    
       
  posted 11-28-2001 19:13
      
      haha ... no ....  | 
  
| 
       Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing  | 
    
       
  posted 11-28-2001 19:17
      
      Dark: OK as long as its all fixed now although a clearer explanation would have moved things along a little quicker.  | 
  
| 
       Maniac (V) Mad Scientist From: New California  | 
    
       
  posted 11-28-2001 22:12
      
      
     | 
  
| 
       Neurotic (0) Inmate Newly admitted  | 
    
       
  posted 11-28-2001 23:29
      
      Good point! I'll give it a shot. I put the orginal slide-in to appear once every browser session so it wouldn't be that annoying. It comes into place and looks like part of the page So It doesn't really look like a pop-up and so I took off the "dismiss" option out of the JS. I'm still wondering if there is way to add a border around the square. It would have to be added into the style..........  | 
  
| 
       Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing  | 
    
       
  posted 11-28-2001 23:31
      
      Dark: If you just want a simple border then: border: 1px solid #000000; if you want a graphical one it is possible but requires more fiddling.  | 
  
| 
       Maniac (V) Mad Scientist From: New California  | 
    
       
  posted 11-29-2001 01:38
      
      
     | 
  
| 
       Neurotic (0) Inmate Newly admitted  | 
    
       
  posted 11-29-2001 03:35
      
      check your e-mail bugs  |