![]() |
Popup Text Window
I want to build a pop up text window for the Product Details page that explains all of the options.
I want to call it Options FAQ. My thought is that like those java image viewers that have the next and previous, like http://www.lokeshdhakar.com/projects/lightbox2/ I hope to be able to build it into a scrollable window and not to have to open a new browser window or redirect. |
Re: Popup Text Window
I use this css script from Dynamic Drive for pop-ups and it works very well.
|
Re: Popup Text Window
Photo,
This will do text with scroll? |
Re: Popup Text Window
Actually I think this will get me what I need.
http://www.dynamicdrive.com/dynamicindex11/abox2.htm I'll just have to mess with it for a while. |
Re: Popup Text Window
OK so I'm trying to do this Script, but I want to have a text link to the run the javascript.
I know it should be like below, but for some reason it's not working. Code:
<a href="javascript:showbox('faq')">link</a> |
Re: Popup Text Window
Quote:
Where did you put the script? Make sure you have the paths to the script correct. |
Re: Popup Text Window
Acutally I'm just testing it at the moment on my local C Drive. Everything is in the same directory.
Here's the HTML file Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
Re: Popup Text Window
Ok, and OMG. I think I figure out why it wasn't working. 1. It didn't like my Google Maps Link I had. 2. Look at the way I had to make the HTML Code one continous line. 3. It doesn't like Bullet points as the first level of the bulleted list, only numbers, then bullets.
Here's a link to the test code HTML file. I haven't put it in the X-Cart yet. I also turned off the auto popup as I don't need that function. I may just put the Google Map Link in the X-cart product_details.tpl Click the "PopUp" http://littlepuppiesonline.msidesigns.com/skin1/popup/Test.html Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
Re: Popup Text Window
Glad you got it to work. Most of this stuff just requires a bit of plain around with.
|
Re: Popup Text Window
Am I just missing it our is there not a real easy way to integrate a Map Link into the X-Cart system?
|
Re: Popup Text Window
Are you talking about using Google Maps API?
|
Re: Popup Text Window
Well not really, but I just need to put in the address where people can find his house. He does a lot of business where people come to house and pick up the dogs.
|
Re: Popup Text Window
I'm I'm totally confused as to how to get this in the product_details page.
http://littlepuppiesonline.msidesigns.com/product.php?productid=1&cat=0&bestseller=Y I'd like it to appear just like this on the page: Options (Click here for descriptions) This should be above the "Home Again Micro Chip" And the Click should be <a href="javascript:showbox('Div')">Click here for descriptions</a> However I have no idea where to put the required <script> stuff for this app. This is supposed to go in the head, which I put in the /customer/meta.tpl file Code:
<script language="JavaScript" src="{$SkinDir}/popup/popup.js"></script> I put the following into the file Code:
<script> I did put the text {include file="popup/popup.tpl"} in the /customer/main/product_details.tpl file. The popup.tpl is: Code:
{Literal} |
Re: Popup Text Window
Try putting the following code directly in /customer/main/product_details.tpl file instead of using the include and see what happens. I dont think you need the literal tags but you can try it with and without them.
Code:
<script> |
Re: Popup Text Window
He'll need the {literal} tags due to the { and } on the second and fourth line respectively.
|
Re: Popup Text Window
Tal like this?
Code:
<script> |
Re: Popup Text Window
It was the {litteral} commands as I posted above that made the difference.
For now it's puzzled dog heads, but I will probably change it. http://littlepuppiesonline.msidesigns.com/Junior-Handsome-lil-TEACUP-male-Maltese.html |
All times are GMT -8. The time now is 10:02 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.