 |
|
 |
Hi Deng,
your Album site is good. Is it possible to get the code? It is what I am looking for.
Regards Markus
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
 |
Hi friends
i am using vs 2008
when i click button it should display all aspx pages using in Project in POP UP Window
then, when i selected particular page, path of Page(../Project/Employee.aspx) should set in textbox
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hi,
can i get ur code for the same (http://zi01.org/demo/PhotoView.aspx?image=A3-Flowers/IMG_0146.JPG) using options
Regards
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Thanks for the project - worked first time. I've modified the code to run not as a slide show - but to load a blank image on page load and transition the first image, respond to navigation keys (first, last, prev next), and to work from a database repository of images. If there is any interest I'll post the code
|
| Sign In·View Thread·PermaLink | 3.00/5 (2 votes) |
|
|
|
 |
|
|
 |
|
 |
Hi,
i am very thankfull to u for this article. you have done a great job. i have use it and its working fine, i just want to know how can i use each image as a different link in slide show.
Please help me out
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hello!! I don't know how to make it works.I don't know how to using slideshow 3 times on one page and the theory you mentioned in reply to Lennie' question on December 7, 2006 . Could you show me the codes? Here is my e-mail address: meccamyth@hotmail.com.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hello,
This show works great for me. Just one question - how to limit the number of transition effects? I'm using it on the front page of the photography site, and would like to use fading only.
I've tried to replace all effects in the C# code with Fade, but although some effects had been removed, there are still a few.
I would appreciate you help very much.
Thank you.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hello ,
I had use this code in page. its working fine. but In this code is not working in master page. Please help me..
Regards,
Shakthi.P
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
 |
Hi,
Great code Lang! I have been looking for something like this. I've had success modifying Javascript code with other scripts, but the best part of this script is being able to load all my images into one folder and display them from there. Thanks! The only things I have left to do are integrate it with my master page and host it on my website. I guess I'm going to have some fun getting it to work, but I enjoy the learning.
Now, my question: I modified the code based on the suggestions posted earlier to make it work in Firefox, and of course lost all the transitions filters. Is it possible to make it work in IE & in Firefox WITH the transitions? If not, then how about a way to use transitions if the browser supports them, and just image swap if the browser doesn't support them?
Thanks very much!
Jim R, Seattle,WA
|
| Sign In·View Thread·PermaLink | 2.50/5 (4 votes) |
|
|
|
 |
|
|
 |
|
 |
I would like to thank you for such a precise code and a consice apporach for doing image transitions.
It's really really helpfull.
Thanks a lot.
God bless you 
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Thanks a lot for this article, but what if i need to make the slide show advance in order not randomly, Thanks so much for your help.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
When I run the downloaded code in VWD Express I do not see any of the thumbnail images below as seen in the demo. Also no buttons below??
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
 |
The source code included is used to demo the AJAX features only. The live demo site has a few more functions added in, i.e. thumbnails, music, EXIF info and a simple photo album when the photos are clicked. Since those functions are beyond of AJAX, I didn't put them in. If more people is interested in those features, I'll consider to post another article when I get the time. Thanks.
|
| Sign In·View Thread·PermaLink | 2.50/5 (2 votes) |
|
|
|
 |
|
 |
Thanks for the quick reply. Great work. The demo is exactly what I have been looking for in a slideshow. I will look for a future posting. In the mean time my search goes on for something as good.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
I liked the functions on your demo site. Is there anyway I can get a copy of the code you used there that allows you to click on the image and get more info.
|
| Sign In·View Thread·PermaLink | 1.75/5 (4 votes) |
|
|
|
 |
|
 |
The photo info is attached in JPG files in Exif format. You can search the net for the Exif resources. In my demo project I implement my own Exif decoder based on the resources I found on the internet. I'll post the Exif stuff when I find the time. Thank you for your interesting in my article.
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
 |
Can someone please let me know how I can get the slideshow to work with Master Pages?
Alex
|
| Sign In·View Thread·PermaLink | 1.50/5 (2 votes) |
|
|
|
 |
|
 |
This issue was reported before. The problem is that the Master Page will change the HTTP image element's IDs. You have to modify those IDs used in the javascript to match the HTTP image element's IDs.
|
| Sign In·View Thread·PermaLink | 2.67/5 (3 votes) |
|
|
|
 |
|
 |
I also found it doesn't work in firefox, although it works perfectly in IE.
After reading your code I can now understand why it doesn't work in Firefox, as you make use of transitions that firefox does not support.
Thanks for your code though as I can use it as an idea.
-- modified at 6:27 Friday 23rd February, 2007
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
 |
Hello Am using slide show coding, net.2005 C# and master page, this is does not support mozilla browser. Am getting all image is database and using public static dataset. It’s working in all IE browser but dose not support mozilla browser plz help me This mail id: gurusewack@gmail.com guru@inbox.com
This is client side coding
<script type="text/javascript"> var c_interval = 10000; window.setTimeout("getNextImage()", c_interval); function getNextImage() { CallServer(document.getElementById("ctl00_ContentPlaceHolder1_photo").src, ""); } function ReceiveServerData(rValue) { var wds = rValue.split(";"); document.getElementById("ctl00_ContentPlaceHolder1_photo").style.filter = wds[1]; var img = new Image(); img.onload = function(){ imageLoaded(this); } img.onerror = function(){ imageError(this); } img.onabort = function(){ imageError(this); } img.src = wds[0]; } function imageError(img) { window.setTimeout("getNextImage()", 1000); } function imageLoaded(img) { var photo = document.getElementById("ctl00_ContentPlaceHolder1_photo"); photo.filters[0].apply(); photo.filters[0].play(); photo.src = img.src; window.setTimeout("getNextImage()", c_interval); } </script>
This server side coding
using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.IO;
public static DataSet dslist = new DataSet(); string m_lastFileName = "none"; ImageManagement objImageMang = new ImageManagement(); protected void Page_Load(object sender, EventArgs e) {
Session["module"] = "Home"; if (!IsPostBack) { dslist = objImageMang.Display(); } if (IsPostBack) return;
photo.Src = GetNextImageUrl(); if (photo.Src == "") { photo.Src = Server.MapPath("HomeImage/DefaultHomeImage.jpg"); }
string cbReference = Page.ClientScript.GetCallbackEventReference(this, "arg", "ReceiveServerData", "context"); string callbackScript = "function CallServer(arg, context)" + "{ " + cbReference + "} ;"; Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "CallServer", callbackScript, true); }
private string GetNextImageUrl() { DataView dv = new DataView(); try { dv = dslist.Tables[0].DefaultView; } catch { }
string[] files = new string[dv.Count]; if (dv != null) { int i = 0; if (dv.Count > 0) { for (i = 0; i < dv.Count; i++) { files[i] = Server.MapPath(dv[i]["ImagePath"]); } } }
if (files.Length == 0) return string.Empty;
while (true) { int n = (int)((files.Length - 1) * (new Random()).NextDouble());
if (files[n].IndexOf(m_lastFileName) < 0) { return files[n].Replace(AppDomain.CurrentDomain.BaseDirectory, string.Empty); } } }
public string GetCallbackResult() { return GetNextImageUrl() + ";" + GetNextTransition(); }
public void RaiseCallbackEvent(string eventArgument) { m_lastFileName = Path.GetFileName(eventArgument); }
private string GetNextTransition() { int n = (int)((new Random().NextDouble()) * 5); switch (n) { case 0: case 1: n = (int)((new Random().NextDouble()) * 22); return "revealTrans(duration=2,transition=" + n.ToString() + ")"; case 2: case 3: if (Request.Browser.Browser == "IE") { n = (int)((new Random().NextDouble()) * 8); switch (n) { case 0: return "progid:DXImageTransform.Microsoft.RandomDissolve()"; case 1: return "progid:DXImageTransform.Microsoft.Pixelate(MaxSquare=20, Duration=2, Enabled=false)"; case 2: return "progid:DXImageTransform.Microsoft.RadialWipe(wipeStyle='clock')"; case 3: return "progid:DXImageTransform.Microsoft.Wheel(spokes=4)"; case 4: return "progid:DXImageTransform.Microsoft.Stretch(stretchStyle='spin')"; default: return "progid:DXImageTransform.Microsoft.Stretch(stretchStyle='push')"; } } else return "blendTrans(duration=2)"; default: return "blendTrans(duration=2)"; } }
Guru
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
To get this to work in firefox you will have to change the transitions things.
document.getElementById("ctl00_ContentPlaceHolder1_photo").style.filter = wds[1];
this line here needs to checked.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hello Lang,
Thanks for the useful article. It works well and is fairly compact.
However, just one little problem. I cannot get it to work with master pages. It just displays the first photo and then freezes.
I have a fully coded example that I would be happy to send you if you could supply an email address. Thanks.
Donald Shaw
|
| Sign In·View Thread·PermaLink | 1.00/5 (2 votes) |
|
|
|
 |
|
 |
Hi Donald,
Happy New Year!
Thank you for reading my article. My email address is langdeng@hotmail.com. You are welcome to send me the source. I will take a look when I get a chance.
Lang Deng
|
| Sign In·View Thread·PermaLink | 5.00/5 (1 vote) |
|
|
|
 |