Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules
Author Message
Darrell3831
Worker
Worker



Joined: Feb 18, 2004
Posts: 244

PostPosted: Fri Feb 17, 2006 7:18 am Reply with quote

Is there a way to insert an image in the content module and then have below it a link that says click to enlarge.

When someone clicks on it I want it to open a new second window with the full size image in it.

I almost understand the proccess of adding javascript in the includes directory (including it) and then recoding the content module, or trying to embed html/javascript into the content of the content module to accomplish this. With time I might be able to do it.... But that includes javascript in everything, and it means I have to maintain it through all upgrades.

I was hoping someone might know an easier way.

Is there an html/css solution to this problem that would not require me to use javascript? One that I could embedd totally into the content of the content module and then not have to maintain through subsuquent upgrades.

Please be as presise as possible. I'm not familiar with any html/CSS solution. So I'm sure I won't understand what your saying right off.

Thanks,
Darrell

_________________
[ Only registered users can see links on this board! Get registered or login! ] 
View user's profile Send private message Visit poster's website
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

PostPosted: Fri Feb 17, 2006 8:01 am Reply with quote

im not saying this will be your solution but what about this hack...
read it carefully...
[ Only registered users can see links on this board! Get registered or login! ]
 
View user's profile Send private message
Darrell3831







PostPosted: Fri Feb 17, 2006 1:32 pm Reply with quote

Although I was hoping for a solution other than javascript, I did try it.

I spent a couple hours on it, I just wasent able to get it to work for me.

The link was not opening in a new window, it was opening in the same window, and I wasent able to get the FCK editor to save the html the way I was typing it in...

*shrugs*

Thanks for the suggestion though.

Darrell
 
Darrell3831







PostPosted: Fri Feb 17, 2006 1:58 pm Reply with quote

I found a solution that seems to work.

Code:
<center><img height="346" alt="Five of Pentacles" width="200" align="middle" border="0" src="/images/tarot/P-V.jpg" /></center><center><a href="javascript:void(window.open('http://www.psy-center.com/images/tarot/lgP-V.jpg','Large','resizable=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,fullscreen=no,dependent=no,width=311,height=538'))">Click here to enlarge image</a></center>


You can see what it does here:

http://www.psy-center.com/modules.php?name=Content&pa=showpage&pid=41

I don't know if it's a good idea or not. But it appears to work on at IE at least..
 
hitwalker







PostPosted: Fri Feb 17, 2006 2:37 pm Reply with quote

good for you...... Razz
 
themadhacker
Worker
Worker



Joined: May 30, 2006
Posts: 100

PostPosted: Sat Jun 03, 2006 6:22 pm Reply with quote

I know this is old...but I found it searching for an answer to my own question.

But why not use the TARGET="_BLANK" html command to open the href in a new window???
 
View user's profile Send private message
hitwalker







PostPosted: Sat Jun 03, 2006 7:50 pm Reply with quote

cause it wasnt what he was looking for...
 
jaded
Theme Guru



Joined: Nov 01, 2003
Posts: 1006

PostPosted: Sat Jun 03, 2006 7:54 pm Reply with quote

That is what I would have done as well when reading this. However, he did say that he was not familiar with html/css etc. I guess he found his own solution. It does work but might have been better to just make the image clickable to a full size. At any rate, I'm glad you pointed out the date on this mad, I never looked lol!

_________________
Themes BB Skins [ Only registered users can see links on this board! Get registered or login! ]
Graphic Tees [ Only registered users can see links on this board! Get registered or login! ]
Paranormal Tees [ Only registered users can see links on this board! Get registered or login! ]
Ghost Stories & More [ Only registered users can see links on this board! Get registered or login! ] 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©