I always think Javascript is a good thing and want to learn it well. Of course, I also had to learn something. After nearly a month, I finally got something to write.
Today, I have made an image viewer using JavaScript.
First look:
First, we
First: Let's first look at the final effect: http://www.orfeo-Casa/index. aspx
The following is a brief introduction to the usage method.Code
Step 1: We will introduce
Step 2:
Tip: You can modify some of the code before running
pure CSS Lightbox effect
(without JS) Close< ;/div>
Tip: You can modify some of the code before running
Step into the business:
Now full screen of the translucent mask layer in the web2.0 site is very extensive application, the vast majority of masks are calculated by the size of the page, and then cover a page equivalent to the size of the
work and your ability to expand.
Multifaceted LightboxA script (JavaScript) that allows the users attention on a particular portion of the screen. It creates the equivalent of a modal dialog box-this means that while the user looks on this focused part of the They can ' t interact with the rest of the.
Slightly Thickerbox 1.7Slightly thickerbox is a modification of Cody Lindley ' s thickbox script. I modified it for use in my Jason's Toolbox redesign. The modifications allow the script to gen
close link to the top and made the script case insensitive .)
TriptrackerThe triptracker slideshow is a lightweight JavaScript Image Viewer with an animated slideshow feature.
Slimbox, the ultimate lightweight lightbox cloneSlimbox is a 7kb visual clone of the popular lightbox JS V2.0 by Lokesh dhakar, written using the ultra compact mootools framework. it was
The Image Viewer built by CSS + JS is a simple image Viewer built by CSS + JS. You can click the thumbnail to view the large image and view the description of each image separately, the position of the big chart is fixed in width and height. The excess part is hidden. Click the big chart to view the full size. Compatibility: IE, Firefox, and Opera.
JS Section
Function showPic (whichpic ){If (document. getElementById ){Document. getElementById ('holder'). src = whichpic. href;If (whichpic. title
This is a simple picture viewer built using CSS + JS, use thumbnail click to see a large image, you can display each picture description, the larger picture shows the location using fixed width and height, beyond the part of the hidden, click on the big picture can see the full size, Compatibility: IE, Firefox, Opera.
JS part
function Showpic (whichpic) {if (document.getElementById) {document.getElementById (' placeholder '). src = whichpic.href;if (whichpic.title) {document.getElementById ('
This is a simple image Viewer built with CSS + JS. You can click a thumbnail to view the large image. The description of each image is displayed. The position of the large image is fixed width and height, and the excess part is hidden, click the big picture to view the full size, compatibility: IE, Firefox, and Opera.
JS Section
Function showPic (whichpic ){If (document. getElementById ){Document. getElementById ('holder'). src = whichpic. href;If (whichpic. title ){Document. getElementById ('de
Image Viewer built with CSS + JS
This is a simple image Viewer built with CSS + Js. You can click a thumbnail to view the large image. The description of each image is displayed. The position of the large image is fixed width and height, and the excess part is hidden, click the big picture to view the full size, compatibility: IE, Firefox, and opera. JS Section
Function showpic (whichpic ){If (document. getelementbyid ){Document. getelementbyid ('holder'). src = whichpic. href;If (whichpic. T
trigger, fade-in, and other image switching effects. Jquery cycle plugin also supports the metadata plugin and the easing plugin plug-ins (optional ).
EO gallery-a webpage magic light. It displays large-sized images on the webpage based on the Basic thickbox functions of jquery and Cody Lindley. EO gallery complies with XHTML 1.0 and CSS design standards. I have tested EO gallery on Firefox, ie6.0, and Safari, and have performed well. It can even work in browsers that do not support JavaScript
within each block, you can go to the following sub-fast to continue to find, can be divided into multiple layers to sort.
4. In this way, a billion-dollar level of data (such as the long type), the worst of the worst extreme situation will be 2048 times file seek to filter the results. amp;lt;img src=quot;https://pic2.zhimg.com/v2-8a4e20c07a3a64df2dafc1a5921b7c91_b.pngquot; data-rawwidth=quot;867quot; data-rawheight=quot;251quot; Class=quot;origin_image zh-
code to display the shutdown effect.Note that if the
When using the IE browser, you must first hide the Selects = document. getElementsByTagName ('select ');For (I = 0; I Selects [I]. style. visibility = visibility;}
Code Implementation
Client codeThere are two links on the client page. After clicking the link, the user sends a request to the server and displays the returned information on the highlighted layer. The webpage file code of the client is as follows:
In addition, you also need to s
1,Multibox
A lightbox supports the following content formats: image, Flash, video, MP3, and HTML.
Home: http://www.phatfusion.net/multibox/
Download: http://www.phatfusion.net/multibox/multibox.zip
Example: http://www.phatfusion.net/multibox/
2,Imagemenu
An Image Display Control. When you move the cursor over an image, the entire image is displayed.
Home: http://www.phatfusion.net/imagemenu/
Download: http://www.phatfusion.net/image
the two layer elements from the page.The following code implementation shows the shutdown effect.
It should be noted that in IE browser if there is a
When using IE browser, you should first hide the Selects = document.getElementsByTagName (' select ');
for (i = 0; i Selects[i].style.visibility = visibility;}
Code implementationClient codeThere are two links on the client page, the user clicks the link, sends the request to the server, and displays the return information on the highlighted
12 Ajax pop-up Layer effect JS code, the function is very powerful.
Thickbox-based on JQuery, it is lightweight and more efficient to support AJAX. Supports picture and HTML content. Size of about 40k, currently can also be used as WordPress plug-ins. The advantage of this JS is that with the parent's original page scroll bar scrolling with the mouse, the pop-up layer does not move, but always in the browser's fixed position.
Greybox-Create an IFRAME pop-up interface that uses pictures, HTML,
drop-down menu of the HTML select box implementation functionality.
View Details
Tags: jQuery
/> Xmlobjectifier, based on jquery, is able to convert the XML DOM into a JSON JavaScript library.
View Details
Tags: jQuery XML
The/> jquery UI is based on a set of UI frameworks developed by jquery. Includes a number of commonly used tools, effects, UI controls. Accordion, Calendar, Dialog (modal floating dialog box with confirmation box), Slider, table (sortable table), Tabs, Menu, Tree, uploade
Every year, a list of programming languages is published, with fluctuations, but the Java language ranking has been in front of the world, by engineers worldwide, mainly because the Java language is powerful and easy to use two features. We are the big people pack Wei guest platform (great large data, bi business intelligence and IT services in the area of the public package Granville platform) Small series for everyone to inventory, it engineers favorite Java application-related tools. amp;lt;i
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.