473,513 Members | 2,519 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

clipping questions

I am currently experimenting a bit with clipping (with banners).
1. Is it possible to do more then one clipping on a image. For example:
image of 400px x 80 px:
var TELLER = 0;
function unfoldPic() {
TELLER++;
if (TELLER <= 80) {
CURR_PIC.style.clip = 'rect(0px 400px ' + TELLER + 'px 0px)';
window.setTimeout('unfoldPic()', 30);
}
}
This reveals the new pic gently from top to bottom.
But I would like to do something like this.
var TELLER = 0;
function unfoldPic() {
TELLER++;
if (TELLER <= 10) {
CURR_PIC.style.clip = 'rect(0px 400px ' + TELLER + 'px 0px)';
CURR_PIC.style.clip = 'rect(10px 400px ' + (TELLER+10) + 'px 0px)';
CURR_PIC.style.clip = 'rect(20px 400px ' + (TELLER+20) + 'px 0px)';
CURR_PIC.style.clip = 'rect(30px 400px ' + (TELLER+30) + 'px 0px)';
CURR_PIC.style.clip = 'rect(40px 400px ' + (TELLER+40) + 'px 0px)';
CURR_PIC.style.clip = 'rect(50px 400px ' + (TELLER+50) + 'px 0px)';
CURR_PIC.style.clip = 'rect(60px 400px ' + (TELLER+60) + 'px 0px)';
CURR_PIC.style.clip = 'rect(70px 400px ' + (TELLER+70) + 'px 0px)';
window.setTimeout('unfoldPic()', 100);
}
}
To give the impression that there 8 blinds/layers opening/revealing the new
pic.
I am afraid that to accomplish this I will have to divide each image in 8
layers to be able to do this and address each and everyone of these layers
seperately.

2. Can one do clipping with something else then rect ? Ellipse, circle, ....

thanx,

Pugi!
Mar 15 '06 #1
2 1530
VK

Pugi! wrote:
I am currently experimenting a bit with clipping (with banners).
1. Is it possible to do more then one clipping on a image.
To give the impression that there 8 blinds/layers opening/revealing the new
pic.
I am afraid that to accomplish this I will have to divide each image in 8
layers to be able to do this and address each and everyone of these layers
seperately.
Not necessary. You can have a matrix of non-transparent div's atop of
your image and shrink them in a loop. Microsoft transition does the
desired effect in one line of code, but unfortunately not supported by
anyone else.
2. Can one do clipping with something else then rect ? Ellipse, circle, ....


The same approach but use clipping images (of circles etc) atop of the
image you want to reveal.

Mar 15 '06 #2

"VK" <sc**********@yahoo.com> schreef in bericht
news:11*********************@j33g2000cwa.googlegro ups.com...

Pugi! wrote:
I am currently experimenting a bit with clipping (with banners).
1. Is it possible to do more then one clipping on a image.
To give the impression that there 8 blinds/layers opening/revealing the
new
pic.
I am afraid that to accomplish this I will have to divide each image in 8
layers to be able to do this and address each and everyone of these
layers
seperately.


Not necessary. You can have a matrix of non-transparent div's atop of
your image and shrink them in a loop. Microsoft transition does the
desired effect in one line of code, but unfortunately not supported by
anyone else.
2. Can one do clipping with something else then rect ? Ellipse, circle,
....


The same approach but use clipping images (of circles etc) atop of the
image you want to reveal.


Hmmmm, you gave me some ideas. Still have some questions, but will start new
thread.

Pugi!
Mar 15 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1813
by: John Hunter | last post by:
Does gd lib or gdmodule support clipping? I would like to set a clip rectangle and when I issue drawing commands (like im.polygon) have only the part of the polygon inside the clip rectangle...
14
2048
by: Doug van Vianen | last post by:
Hi, I am trying to show a clipped part of a picture on a webpage and move it on the page and/or change the clipping to a different part of the picture. I show the picture in the body of the...
0
2260
by: phil cunningham | last post by:
Does anyone know of a good library to handle Polygon clipping in C#. This would require clipping of shapes with FLOAT verteces and we need the capability of clipping one Polygon against another...
4
1267
by: Dixon | last post by:
Hai Im a newbie I have a picture in a picture box I drag a portion of the picture with the mouse..... Here i get the area i dragged in and now i want that area to be a separate picture...
2
2824
by: zeyais | last post by:
I am using ASP.net (should be transparent in this case). The page is generated alright. The page has fieldset, divs and tables and other HTML elements like text box, drop downs etc; all are...
9
3397
by: Andy Baxter | last post by:
hello, I'm writing a panoramic image viewer in html / javascript. The idea is I have a div with two identical panoramic photographs embedded in it. The clipping on the div is set to make it a...
4
2091
by: soren625 | last post by:
What I am trying to do is grab a little snippet of data from a remote page based on user input in a form. Take a look at this page: http://www.qrz.com/kb2gsd What I want to do is: when a user...
0
1324
by: dongarbage | last post by:
Hi there, I have a panel that I'm trying to draw lines on based on mouse events. I'm using a Graphics object to do this. However, the region that the graphics object will draw lines in is...
2
5553
by: Rune Jacobsen | last post by:
Hi all, I have a few questions on deriving from ScrollableControl that I hope will be relatively easy to answer. I am using Visual Studio 2003, C# and ..Net 1.1. I have this custom control I...
0
7160
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7384
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7537
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7099
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5086
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3233
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3222
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1594
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
456
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.