I have a problem with my work. I have to write Javascript file which will display me a website like this one http://tinypic.com/r/2iu47b6/8 . I have already given html and css file which am I not allowed to change. List of pictures in JS must be given as array.
I have to write function onInit() which starts after loading the site and creates XHTML code with list of pictures and paste it in cell with ID = "seznam". Other function must work that way when you click on picture it shows up in full size, like you can see on picture in LINK i posted.
Here appears my problem. I created JS file and my pictures doesn't show up when I open html website. If I try to open picture in new tab I get error "Failed to load resource: net::ERR_FILE_NOT_FOUND".
I have html, css and js files saved together in one map, and pictures in subfolder "slike", but my website anyway doesn't work.
Can someone please check my code, and help me? http://plnkr.co/edit/zD0Chi8WUqLPf1JaKwr2?p=preview
Thanks!
EDIT: Pictures imported to website are Sample pictures from Windows 7 if that helps.
Probably this line is the problem:
print =print+"<img src=\""+print[i]+"\" onClick=\"ShowPics(this);\" />"
It should probably be:
print =print+"<img src=\""+pictures[i]+"\" onClick=\"ShowPics(this);\" />"
Related
I am looking for a solution where in I am able to move to a specific line in a pdf embedded in HTML .
At the moment I am using object tag to display the pdf in html page .
I know by using open parameters I can scroll through a pdf to a specific page but I am unsure how can this be achieved for a particular line navigation .
Open parameters example has been shared in the below mentioned question link but I need some parameter which helps me reach a particular line in PDF may be using some co-ordinates if that's achievable.The requirement is to scroll a PDF to a particular line and only the PDF should get scrolled not the original HTML page.
How to move the scroll bar of the browser on a pdf file with ASP / Javascript?
I can use any of the JQuery PDF viewers as mentioned here :
http://www.jqueryrain.com/2012/09/best-jquery-pdf-viewer-plugin-examples/
in case your solution uses them .
Please note I don't want to move to a particular location in an HTML page as mentioned in below post rather its about navigating to a particular line in a PDF embedded in a page.
How can I scroll to a specific location on the page using jquery?
Any help or leads would be really appreciated .
Thanks in advance.
Create a destination in the PDF file (assuming you are the one generating it) at the appropriate line, and add #destination to the end of the URL
See https://helpx.adobe.com/acrobat/kb/link-html-pdf-page-acrobat.html#OpenaPDFfiletoasetdestination for an explanation on linking to PDF page numbers and destinations.
Assuming you don't have access to a PDF's source, you can open to a page by adding &page=pagenum to the URL as noted at link html pdf page. You may also want to look at this question.
I had to move my wordpress site to a different directory folder on my hosting server. Now for some reason on the portfolio pages of my website it's not displaying the thumbnail preview for lightbox images. The image will display when the thumbnail is clicked so I know it's pulling the right image from the right place but why is it not showing the preview thumbnail?
Here is a link:
Any help would be really appreciated!
You don't have the img src defined which PrettyPhoto uses to pull the thumb:
OK, well based on your comments the switch across from one server to another has stopped the method aq_resize() working. It is called Aqua-Resizer, here's the Github page;
https://github.com/sy4mil/Aqua-Resizer/blob/master/aq_resizer.php
The wiki on it explains it's use but if all you've done is change the server then you will have to look at other explanations for why it's not working. The following is a list you can start looking through;
Make sure your functions.php still has require_once('aq_resizer.php'); with the correct path to this script. Make sure the script is actually there. If it is try changing the file permissions on the file to see if that helps. If the script uses a cache directory try changing the permissions on this.
It could also be that the PHP version on the new server is different (maybe, I'm guessing now)? Check that too.
(I have limited coding experience)
I have a template file for a website and currently the image gallery for the site opens in a new page, I would like instead for the image gallery to not open additional pages/tabs and instead contain images in rows of five with one large main image under the rows all within the same page, I would like the main image when scrolled over with the mouse it zooms in on the picture Also when you click on the smaller additional images (in rows of five) it will change the main bigger image to the image that was clicked and allow the zoom in feature as well.
What are the tags I need to place in the template file (in the link below) and where do I put the tags?
Shown below is the current tags in the template
This is the picture gallery tags in the template file of the site:
<!-- picture gallery -->
<script type="text/javascript">myThumbs = ##CST_ITEM_IMAGE_ARRAY_T##;myPix = ##CST_ITEM_IMAGE_ARRAY_M##;</script>
Here is a link to the template file and a pdf of what I am trying to accomplish
http://sdrv.ms/UCHk8z
Here is what the current image gallery looks like now that needs to be changed to not open a new window
http://www.ebay.com/itm/4-Behringer-B208D-Active-800-Watt-2-Way-PA-Speaker-Systems-8-Woofer-/390478326914?pt=US_Pro_Audio_Speakers_Monitors&hash=item5aea526c82
I am not proficient with programming I understand some things but not how it all flows together, I only know basic links and tags so thank you everyone for your help, I greatly appreciate all the responses. I have been Google searching everything to no success.
According to my understanding of your question I think you require something like Thumbnail gallery , if so refer the below url
http://www.queness.com/post/3141/10-image-galleries-jquery-script-with-thumbnail-filmstrip
so I have choose one ( http://www.robertnyman.com/picture-slides/) to use for your purpose right so by that 80% of work is done just download the demo of that and is it will be easily understandable, in your case you can see 3 links in demos click on the one you like and download it and use it
so you have downloaded the file using the picture gallery link, so you will get a zip file which consists of gallery and _Macosx don't bother about the Macosx.
Now go into the gallery file in that there will be a index.html,css and required js, copy them where you require and if you see the index html there will be a div which consists of Picture slider container class div, complete the copy the div and paste it where you require.... Thats it :D
Note: Make sure you give the correct paths to the images, thumbnails, css and js
Hope this helps
i'm trying to get the following example set up on my computer:
http://deluxe-menu.com/popup-mode-sample.html
I've right clicked for the source code, copied the HTML into a file on my local computer and have saved the 5 javascript files (dmenu,data,add,data-popup-mode,data-popup-mode2).js into the same folder.
I have also swapped their image for one of my own which is located in the same directory.
When i right click my image it says
Error: dm_popup is not defined
However, i cannot seem to find where this has been declared. Can someone please help?
EDIT: I've also copied over the css files
You also need the dmenu_popup.js file, that function you need is included inside. It seems to be loaded by dmenu.js, that explains why you haven't seen it.
How would you be able to make a button (in xslt) that can be placed on a website (html page). So when clicked (on the button) a iframe appears and displays for example a file of my choosings functions.php or any other html page.
At the moment i have no really a idea in what direction to look.
The idea is just to display some sort of score table(xml).
This file already has layout trough the xslt file.
At the moment everything is for local testing (localhost).
Best regards.