Help needed for photo gallery
Hi,
I downloaded a applet for a rotating flash photo gallery.
However, I can't see any instructions for how to modify the
actionscript...There are a few comments, but they dont seem to be
sufficient.
Here is the script a part of the gallery:
// prototype function for fixing the scaling and position of
images
movieclip.prototype.do_me = function () {
var w = 540;
var h = 400;
var k = this._width / this._height;
if (k > 1.35) {
this._width = 540;
this._yscale = this._xscale;
this._y=0-(this._height/2);
this._x=0-(this._width/2);
} else {
this._height = 400;
this._xscale = this._yscale;
this._y=0-(this._height/2);
this._x=0-(this._width/2);
var ap="{parameterstorage}";
var ts="{timestamp}";
var panel=parseInt("{panel}",10);
var radius=parseInt("{radius}",10);
var ysens=parseInt("{ysens}",10);
var xsens=parseInt("{xsens}",10);
var mousespeed=parseInt("{mousespeed}",10);
var minspeed=parseInt("{minspeed}",10);
var breakfactor=parseInt("{breakfactor}",10);
var zoomtime=parseInt("{zoomtime}",10);
var zoomamount=parseInt("{zoomamount}",10);
var sbg = parseInt("{sbg}",10);
var square = parseInt("{square}",10);
var urls="{urls}";
var target="{target}";
var cmode = parseInt("{cmode}",10);
var backgroundcolor=parseInt("{backgroundcolor}");
var bgi="{backgroundimage}";
var width=parseInt("{width}",10);
var height=parseInt("{height}",10);
var maxitems=parseInt("{maxitems}",10);
var ts=-1;
var maxitems=5;
var panel=22;
var radius=250;
var ysens=100;
var xsens=10;
var mousespeed=60;
if (minspeed<=0) {
minspeed=5;
minspeed/=100;
if (Math.abs(breakfactor)>10) {
breakfactor=10;
breakfactor/=10;
if (zoomtime<0) {
zoomtime=2;
zoomtime*=50;
var zoomamount=2;
var urls="
http://www.mandomartis.com/|http://www.effectmaker.com|http://www.yahoo.com||";
var target="_self";
var backgroundcolor=0xffffff;
var width=640;
var height=480;
var lm = "{lm}"; var lmxy = "{lmxy}";
var lm = lm.split("|");
var lmxy = lmxy.split("|");
for (i=0; i<lm.length; i++) if (lm
.length>3) {
attachMovie("lom", "lm" add i, i+6+maxitems);
var xy = lmxy.split(",");
setProperty("lm" add i, _x, xy[0]);
setProperty("lm" add i, _y, xy[1]);
eval("lm" add i).loadMovie(lm
function initApplet() {
moviearea._x=width/2;
moviearea._y=height/2;
activated=true;
var today=new Date();
activated=true;
//url's initialisation
urls=urls.split("|");
// bgnd activation
bgnd._x=-width/2
bgnd._y=0;
bgnd._width=width;
bgnd._height=height;
bgndColor=new Color(bgnd);
bgndColor.setRGB(backgroundcolor);
if (sbg>0) bgnd._visible = true; else bgnd._visible =
false;
if (bgi.length>0)
bgholder._x=-width/2;
bgholder._y=0;
bgholder.backgroundimage._width=width;
bgholder.backgroundimage._height=height;
bgnd._visible=false;
// duplicating main clip
for (var a=0;a<maxitems;a++) {
newarea = "area"+a;
duplicateMovieClip ("moviearea", newarea, a+5);
this[newarea].item_num=a;
this[newarea].theta = a*360/maxitems;
this[newarea].panel = panel;
this[newarea].radius = radius;
this[newarea].gotoAndPlay(2);
if (square==0) this[newarea].control._alpha=0;
// moviearea._x = -1000;
// moviearea._visible = false;
moviearea.gotoAndPlay (2);
this._x = (width/2);
initApplet();// prototype function for fixing the scaling and
position of images
movieclip.prototype.do_me = function () {
var w = 540;
var h = 400;
var k = this._width / this._height;
if (k > 1.35) {
this._width = 540;
this._yscale = this._xscale;
this._y=0-(this._height/2);
this._x=0-(this._width/2);
} else {
this._height = 400;
this._xscale = this._yscale;
this._y=0-(this._height/2);
this._x=0-(this._width/2);
var ap="{parameterstorage}";
var ts="{timestamp}";
var panel=parseInt("{panel}",10);
var radius=parseInt("{radius}",10);
var ysens=parseInt("{ysens}",10);
var xsens=parseInt("{xsens}",10);
var mousespeed=parseInt("{mousespeed}",10);
var minspeed=parseInt("{minspeed}",10);
var breakfactor=parseInt("{breakfactor}",10);
var zoomtime=parseInt("{zoomtime}",10);
var zoomamount=parseInt("{zoomamount}",10);
var sbg = parseInt("{sbg}",10);
var square = parseInt("{square}",10);
var urls="{urls}";
var target="{target}";
var cmode = parseInt("{cmode}",10);
var backgroundcolor=parseInt("{backgroundcolor}");
var bgi="{backgroundimage}";
var width=parseInt("{width}",10);
var height=parseInt("{height}",10);
var maxitems=parseInt("{maxitems}",10);
var ts=-1;
var maxitems=5;
var panel=22;
var radius=250;
var ysens=100;
var xsens=10;
var mousespeed=60;
if (minspeed<=0) {
minspeed=5;
minspeed/=100;
if (Math.abs(breakfactor)>10) {
breakfactor=10;
breakfactor/=10;
if (zoomtime<0) {
zoomtime=2;
zoomtime*=50;
var zoomamount=2;
var urls="
http://www.mandomartis.com/|http://www.effectmaker.com|http://www.yahoo.com||";
var target="_self";
var backgroundcolor=0xffffff;
var width=640;
var height=480;
var lm = "{lm}"; var lmxy = "{lmxy}";
var lm = lm.split("|");
var lmxy = lmxy.split("|");
for (i=0; i<lm.length; i++) if (lm.length>3) {
attachMovie("lom", "lm" add i, i+6+maxitems);
var xy = lmxy.split(",");
setProperty("lm" add i, _x, xy[0]);
setProperty("lm" add i, _y, xy[1]);
eval("lm" add i).loadMovie(lm);
function initApplet() {
moviearea._x=width/2;
moviearea._y=height/2;
activated=true;
var today=new Date();
activated=true;
//url's initialisation
urls=urls.split("|");
// bgnd activation
bgnd._x=-width/2
bgnd._y=0;
bgnd._width=width;
bgnd._height=height;
bgndColor=new Color(bgnd);
bgndColor.setRGB(backgroundcolor);
if (sbg>0) bgnd._visible = true; else bgnd._visible =
false;
if (bgi.length>0)
bgholder._x=-width/2;
bgholder._y=0;
bgholder.backgroundimage._width=width;
bgholder.backgroundimage._height=height;
bgnd._visible=false;
// duplicating main clip
for (var a=0;a<maxitems;a++) {
newarea = "area"+a;
duplicateMovieClip ("moviearea", newarea, a+5);
this[newarea].item_num=a;
this[newarea].theta = a*360/maxitems;
this[newarea].panel = panel;
this[newarea].radius = radius;
this[newarea].gotoAndPlay(2);
if (square==0) this[newarea].control._alpha=0;
// moviearea._x = -1000;
// moviearea._visible = false;
moviearea.gotoAndPlay (2);
this._x = (width/2);
initApplet();
sorry for the long post; basically I fairly new to flash and
not familair with actionscript at all. I figure that most of what
is need is number signifing the speeds. Which i added by removing
the curly brackets and adding a number,
i.e var maxitems=parseInt("10",10);
but I dont know how to insert my images....I've tried
various things but i only end up with empty spinning boxes.
If someone could start me off with where i put the images i
may be able to complete it myself , but the more help the better
really as I dont really have a clue and I dont know where to look
for basic knowledge on actionscript language.
Thanks alot in advance,
Liz
Have you tried in Acrobat: Tools->Print Production->Convert Color?
Similar Messages
-
Help needed for photos deleted from Verizon Cloud
After selecting muliple photos in Verizon Cloud, they were inadvertently deleted rather than downloaded to my PC. These photos had been deleted from my phone after backed up to Verizon Cloud. The Trash Can in my Verizon Could has contacts and music deleted over the past year, but not these recently deleted photos. Can these photos deleted from my Verizon Cloud be restored to / undeleted from my Verizon Cloud?
Follow up on this post. If you want the capability to restore items deleted from your Verizon Cloud storage, use the website: https://cloud.verizonwireless.com
Unless the iPhone app and Windows 8 app that access your Verizon Cloud storage directly and delete things directly from the cloud, the website has a trash can feature. This feature gives you a second chance to decide if you want to restore an item you deleted or permanently delete it from your cloud storage -- similar to restoring deleted files or emptying your recycle bin on your PC. In other words:
Verizon Cloud website Trash Can = PC Recycle Bin
Once something is deleted using the apps or from the website trash can, you can assume it is gone. -
Color management help needed for adobe CS5 and Epson printer 1400-Prints coming out too dark with re
Color management help needed for adobe CS5 and Epson printer 1400-Prints coming out too dark with reddish cast and loss of detail
System: Windows 7
Adobe CS5
Printer: Epson Stylus Photo 1400
Paper: Inkjet matte presentation paper with slight luster
Installed latest patch for Adobe CS5
Epson driver up to date
After reading solutions online and trying them for my settings for 2 days I am still unable to print what I am seeing on my screen in Adobe CS5. I calibrated my monitor, but am not sure once calibration is saved if I somehow use this setting in Photoshop’s color management.
The files I am printing are photographs of dogs with lots of detail I digitally painted with my Wacom tablet in Photoshop CS5 and then printed with Epson Stylus 1400 on inkjet paper 20lb with slight luster.
My Printed images lose a lot of the detail & come out way to dark with a reddish cast and loss of detail when I used these settings in the printing window:
Color Handling: Photoshop manages color, Color management -ICM, OFF no color adjustment.
When I change to these settings in printer window: Color Handling: Printer manages color. Color management- Color Controls, 1.8 Gamma and choose Epson Standard it prints lighter, but with reddish cast and very little detail and this is the best setting I have used so far.
Based on what I have read on line, I think the issue is mainly to do with what controls are set in the Photoshop Color Settings window and the Epson Printer preferences. I have screen images attached of these windows and would appreciate knowing what you recommend I enter for each choice.
Also I am confused as to what ICM color management system to use with this printer and CS5:
What is the best ICM to use with PS CS5 & the Epson 1400 printer? Should I use the same ICM for both?
Do I embed the ICM I choose into the new files I create?
Do I view all files in the CS5 workspace in this default ICM?
Do I set my monitor setting to the same ICM?
If new file opens in CS5 workspace and it has a different embedded profile than my workspace, do I convert it?
Do I set my printer, Monitor and PS CS5 color settings to the same ICM?
Is using the same ICM for all devices what is called a consistent workflow?
I appreciate any and all advice that can be sent my way on this complicated issue. Thank you in advance for your time and kind help.It may be possible to figure out by watching a Dr.Brown video on the subject of color printing. Adobe tv
I hope this may help............... -
help needed for writing query
i have the following tables(with data) as mentioned below
FK*-foregin key (SUBJECTS)
FK**-foregin key (COMBINATION)
1)SUBJECTS(table name)
SUB_ID(NUMBER) SUB_CODE(VARCHAR2) SUB_NAME (VARCHAR2)
2 02 Computer Science
3 03 Physics
4 04 Chemistry
5 05 Mathematics
7 07 Commerce
8 08 Computer Applications
9 09 Biology
2)COMBINATION
COMB_ID(NUMBER) COMB_NAME(VARCHAR2) SUB_ID1(NUMBER(FK*)) SUB_ID2(NUMBER(FK*)) SUB_ID3(NUMBER(FK*)) SUBJ_ID4(NUMBER(FK*))
383 S1 9 4 2 3
384 S2 4 2 5 3
---------I actually designed the ABOVE table also like this
3) a)COMBINATION
COMB_ID(NUMBER) COMB_NAME(VARCHAR2)
383 S1
384 S2
b)COMBINATION_DET
COMBDET_ID(NUMBER) COMB_ID(FK**) SUB_ID(FK*)
1 383 9
2 383 4
3 383 2
4 383 3
5 384 4
6 384 2
7 384 5
8 384 3
Business rule: a combination consists of a maximum of 4 subjects (must contain)
and the user is less relevant to a COMB_NAME(name of combinations) but user need
the subjects contained in combinations
i need the following output
COMB_ID COMB_NAME SUBJECT1 SUBJECT2 SUBJECT3 SUBJECT4
383 S1 Biology Chemistry Computer Science Physics
384 S2 Chemistry Computer Science Mathematics Physics
or even this is enough(what i actually needed)
COMB_ID subjects
383 Biology,Chemistry,Computer Science,Physics
384 Chemistry,Computer Science,Mathematics,Physics
you can use any of the COMBINATION table(either (2) or (3))
and i want to know
1)which design is good in this case
(i think SUB_ID1,SUB_ID2,SUB_ID3,SUB_ID4 is not a
good method to link with same table but if 4 subjects only(and must) comes
detail table is not neccessary )
now i am achieving the result by program-coding in C# after getting the rows from oracle
i am using oracle 9i (also ODP.NET)
i want to know how can i get the result in the stored procedure itsef.
2)how it could be designed in any other way.
any help/suggestion is welcome
thanks for your time --PradeeshWell I forgot the table-alias, here now with:
SELECT C.COMB_ID
, C.COMB_NAME
, (SELECT SUB_NAME
FROM SUBJECTS
WHERE SUB_ID = C.SUB_ID1) AS SUBJECT_NAME1
, (SELECT SUB_NAME
FROM SUBJECTS
WHERE SUB_ID = C.SUB_ID2) AS SUBJECT_NAME2
, (SELECT SUB_NAME
FROM SUBJECTS
WHERE SUB_ID = C.SUB_ID3) AS SUBJECT_NAME3
, (SELECT SUB_NAME
FROM SUBJECTS
WHERE SUB_ID = C.SUB_ID4) AS SUBJECT_NAME4
FROM COMBINATION C;
As you need exactly 4 subjects, the columns-solution is just fine I would say. -
File missing (file\BCD error code 0Xc0000034 help need for work!
file missing (file\BCD error code 0Xc0000034 help need for work! what can i do?
have an p 2000 notebook pcHi bobkunkle, welcome to the HP Forums. I understand you cannot boot passed the error you are receiving.
What is the model or product number of your notebook? What version of Windows is installed?
Guide to finding your product number
Which Windows operating system am I running?
TwoPointOh
I work on behalf of HP
Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping! -
Which Adobe do I need for photo & PDF to wor
Which Adobe do I need for photo edit & PDF function
Probably at least two different products.
What format are the photos?
What PDF function do you want? -
Help need for force to signout All session ! how...
hi
help need for force to signout All session ! how ??
Solved!
Go to Solution.Hi and welcome to the Skype Community,
To force a signout of all instances your Skype is signed into please change your password: https://support.skype.com/en/faq/FA95/how-do-i-change-my-password
Follow the latest Skype Community News
↓ Did my reply answer your question? Accept it as a solution to help others, Thanks. ↓ -
Need help with preloader for photo gallery
Hello!
I know I might be the 99999999991 to say that but I will say
it...I'm a begginer with flash and I have a problem...:-)
I'm building a photo gallery which loads jpg photos inside a
loader component by using MovieClipLoader.
Everything works just great but my only problem is that I
can't scale the content (the jpg's) to the size of the loader
component.
I tryed everything but the photos are loading bigger then the
loader, and I wnat to have the photos bigger then the loader so
that I could have good quality on any resolution. Here's the
actionscript I used, if it's necessary:
//------------------MovieClip Loader---------\\
var mcLoader:MovieClipLoader = new MovieClipLoader ();
var myListener:Object = new Object ();
mcLoader.addListener(myListener)
myListener.onLoadProgress = function
(target_mc,bytesLoaded,bytesTotal) {
extLoader_mc._visible = true;
var pctLoaded = Math.round(bytesLoaded/bytesTotal*100);
extLoader_mc.extLoaderBar_mc._xscale = pctLoaded;
extLoader_mc.extLoadinBarLines_mc._xscale = pctLoaded-1;
extLoader_mc.pct_txt.text = pctLoaded;
if (bytesLoaded >= bytesTotal) {
extLoader_mc._visible = false;
mcLoader.loadClip("pics/zernike1.jpg",picViewer_mc.picLoader);
T
Text
Textfirst of all, you can't directly resize the bitmaps, you have to resize the movieclip above it. so if needed, create an empty movieclip inside another wrapper movie clip and resize the wrapper.
then i noticed you don't have onLoadInit in your listener
this method:
myLIstener.onLoadInit=function(mc:MovieClip){
will execute commands after the content is loaded. so you will have to resize your content after it's been loaded. you can't just resize something that you loaded above in your code, you have to wait until it's fully loaded
anyways since you siad you are beginner i will list some useful tip for this job (i don't know if you already know them):
this -refers to current movie clip
this._parent -refers to parent movie cilp
width and height of movie clips are controlled by _width and _height properties, not width height -
Need Help Removing XML Photo Gallery on Button Click
Hi, I'm new to flash so this might seem like a dumb question, but I'm right in the middle of designing a photography site and need some help. I have 4 buttons in my timeline that go to the corresponding frame labels when clicked, above each frame label is a keyframe with actionscript applied to it, that will load an external XML photo gallery. I need the current photo gallery that's on the screen to disappear when I click on a new button to load the new XML photo gallery. this is the code that will be above each frame label with a few changes, then below this is the code for my buttons. Any help is greatly appreciated. Thank you Code: Select all var imageX:XML; var imageList:XMLList; var canvas:MovieClip = new MovieClip(); var picLoader:Loader; addChild(canvas); canvas.x = -155; canvas.y = 160; var req:URLRequest = new URLRequest("gallery.xml"); var imageLoader:URLLoader = new URLLoader(); imageLoader.addEventListener(Event.COMPLETE, onComplete); imageLoader.load(req); function onComplete(e:Event):void { imageX = new XML(imageLoader.data); imageList = imageX.image; picLoader = new Loader(); picLoader.contentLoaderInfo.addEventListener(Event .COMPLETE, imageLoaded); picLoader.load(new URLRequest (imageList[0].url)); } function imageLoaded(e:Event):void { canvas.addChild(picLoader); } Code for the buttons in different keyframe. Code: Select all stop(); kids_btn.addEventListener(MouseEvent.CLICK,onKidsClick); couples_btn.addEventListener(MouseEvent.CLICK,onCouplesClick); portraits_btn.addEventListener(MouseEvent.CLICK,onPortraitsClick); bellies_btn.addEventListener(MouseEvent.CLICK,onBelliesClick); function onKidsClick(e:MouseEvent):void { gotoAndStop("kids"); } function onCouplesClick(e:MouseEvent):void { gotoAndStop("couples"); } function onPortraitsClick(e:MouseEvent):void { gotoAndStop("portraits"); } function onBelliesClick(e:MouseEvent):void { gotoAndStop("bellies"); }
Hi, I'm new to flash so this might seem like a dumb question, but I'm right in the middle of designing a photography site and need some help. I have 4 buttons in my timeline that go to the corresponding frame labels when clicked, above each frame label is a keyframe with actionscript applied to it, that will load an external XML photo gallery. I need the current photo gallery that's on the screen to disappear when I click on a new button to load the new XML photo gallery. this is the code that will be above each frame label with a few changes, then below this is the code for my buttons. Any help is greatly appreciated. Thank you Code: Select all var imageX:XML; var imageList:XMLList; var canvas:MovieClip = new MovieClip(); var picLoader:Loader; addChild(canvas); canvas.x = -155; canvas.y = 160; var req:URLRequest = new URLRequest("gallery.xml"); var imageLoader:URLLoader = new URLLoader(); imageLoader.addEventListener(Event.COMPLETE, onComplete); imageLoader.load(req); function onComplete(e:Event):void { imageX = new XML(imageLoader.data); imageList = imageX.image; picLoader = new Loader(); picLoader.contentLoaderInfo.addEventListener(Event .COMPLETE, imageLoaded); picLoader.load(new URLRequest (imageList[0].url)); } function imageLoaded(e:Event):void { canvas.addChild(picLoader); } Code for the buttons in different keyframe. Code: Select all stop(); kids_btn.addEventListener(MouseEvent.CLICK,onKidsClick); couples_btn.addEventListener(MouseEvent.CLICK,onCouplesClick); portraits_btn.addEventListener(MouseEvent.CLICK,onPortraitsClick); bellies_btn.addEventListener(MouseEvent.CLICK,onBelliesClick); function onKidsClick(e:MouseEvent):void { gotoAndStop("kids"); } function onCouplesClick(e:MouseEvent):void { gotoAndStop("couples"); } function onPortraitsClick(e:MouseEvent):void { gotoAndStop("portraits"); } function onBelliesClick(e:MouseEvent):void { gotoAndStop("bellies"); }
-
Hi
I am new, not expert in flash. Knows only basic flash action
scripting, can any body guide me about dynamic flash photo gallery.
How can import images in flash from database.
please help me, I need that urgently, all suggestions are
welcome.
Regards
HarishHey harish ... unfortunately, developing with flash has some
serious trade-offs. The benefit is making a rich user experience.
However, data integration can often be a much more involved
process. Here are some suggestions for you.
With .net you could publish a webservice. Flash has built a
built in component for consuming webservices.
Your .net guy should know what a webservice is and how to
implement it.
Alternatively, you could have a server side script that, when
called, spits back an xml representation of the data you want to
put into flash.
for example:
<root>
<pic1 title="pic1Title" uri="/pics/pic1" ... />
<pic2 ... />
</root>
or however you want to form your xml.
Flash has built in support for consuming xml in this way
through the xmlconnector component or even just the xml
class.
It would be nice if there was a built in way to communicate
directly with databases.
Flash wanted to make their product vendor nuetral so as far
as I know, there is no way to make a connection directly with a
database with flash out of the box.
I know there are third party addons you can purchase that
will help you do that as another option as well.
One thing that has worked well for me in situations similar
to what you are discussing is using the apache xindice database
combined with the xml class in flash.
The xindice database is an open source project.
It is a database designed specifically to store xml
documents.
http://xml.apache.org/xindice/
I use java and xindice is built in java, but it has two
api's. One for developers writing in javaee and one for developers
writing in other languages.
Or hey, you could always drop a few grand on coldfusion :-)
Probably not the answers you want, but I hope it helps
anyway. -
Help putting a photo gallery in Dreamweaver CS5.5
Hi,
I'm new to web design and have been learning to use DW CS5.5. My goal is to design a website for my small, online antiques business with a photo gallery in it.
The Adobe Extension site lists several photo gallery options, but none for CS5.5. Does anyone have any ideas on how I can easily, or fairly easily add a simple photo gallery to my new site? By simple, I mean thumbnails linking to a page with a larger photo and descriptive text, nothing else. I really want to keep it simple.
Is my only choice to build it myself from scratch?
Any help you can give will be most appreciated.
Terry3Mchello Terry,
There is a website called www.templatesold.com you have to pay.. but i have a login
there are a lot of templates of photo gallerys.
email-me [email protected]
Leonardo Hermoso
bovespa -
I am putting together a photo gallery using the tutorial
found
here.
I have completed the basic tutorial and it is working well. I need
help though in implementing some advanced features not covered in
the tutorial but shown in the proof of concept
here.
I want to include a "gallery" selector like the proof of
concept, but i have no idea as to how i would go about
incorporating it. I have had a look at the code and it doesnt seem
to be all that difficult, but i just dont know what to do. I am
open to anything anyone can suggest even adding more Datasets if
needed. the other thing that is included in the code selection are
the Next, play/pause, and previous buttons. If anyone could tell me
how to get that to work i would appreciate it.
Thanks
Ryandid you have any luck figuring out how to make your photo
album? I'm working on my own and am also having a hard time
understanding the proof of concept without a full tutorial. -
Help with scrolling photo gallery
I'm using the code below to for a scrolling photo gallery. I got this from another forum on Adobe. My problem is that I can't get my images to upload. I uploaded this for an image but it's not working:
<img src="images/baca_poster_small.jpg" data-cycle-title="image1">
Can someone please help me with getting my pictures to work in this?
Thanks!
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>HTML5 document with Cycle2</title>
<!--Latest jQuery Core Library-->
<script src="http://code.jquery.com/jquery-latest.min.js">
</script>
<!--Cycle2 Plugin Script-->
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery.cycle2/20130409/jquery.cycle2.min.js"></script>
<style>
.cycle-slideshow, .cycle-slideshow * {
-webkit-box-sizing:border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
margin:0 auto;
width:45%; /**adjust width as required**/
.cycle-slideshow img {width: 100%;}
</style>
</head>
<body>
<h1><a href="http://www.malsup.com/jquery/cycle2/">jQuery Cycle 2</a> Responsive Slideshow</h1>
<!--begin slideshow-->
<div class="cycle-slideshow"
data-cycle-pause-on-hover="true"
data-cycle-speed="700"
>
<!--your images go here-->
<img src="http://malsup.github.com/images/beach1.jpg" data-cycle-title="beach1">
<img src="http://malsup.github.com/images/beach2.jpg" data-cycle-title="beach2">
<img src="http://malsup.github.com/images/beach3.jpg" data-cycle-title="beach3">
<img src="http://malsup.github.com/images/beach4.jpg" data-cycle-title="beach4">
<img src="http://malsup.github.com/images/beach9.jpg" data-cycle-title="beach9">
<!--end slideshow-->
</div>
</body>
</html>Is this supposed to be a WordPress site? None of these images are found on the server. Those folders don't exist either.
<img class="first" src="mosspictures/DSCN0038.JPG" alt="">
<img src="mosspictures/DSCN0040.JPG" alt="">
<img src="wordpress/wp-content/themes/MarcMossTheme/image-3.jpg" alt="">
<img src="wordpress/wp-content/themes/MarcMossTheme/image-4.jpg" alt="">
<img src="wordpress/wp-content/themes/MarcMossTheme/image-5.jpg" alt="">
<img src="wordpress/wp-content/themes/MarcMossTheme/image-6.jpg" alt="">
<img src="wordpress/wp-content/themes/MarcMossTheme/image-1.jpg" alt="">
<img src="wordpress/wp-content/themes/MarcMossTheme/image-2.jpg" alt="">
<img src="wordpress/wp-content/themes/MarcMossTheme/image-3.jpg" alt="">
<img src="wordpress/wp-content/themes/MarcMossTheme/image-4.jpg" alt="">
Nancy O. -
Hi All
would someone beable to help me with some code, I downloaded a photo gallery example, at the moment the movie plays the photos when you click a button(timer)
What I'm trying to do is to get the movie to auto play the photos on load rather than having to click the button. I have been lookin in the scrip, I think its something to do with
// initialize values
currentIndex = 0;
but when I change this value to 1, not much happens, would some be able to have a look within the code and see where I can change it so that the movie runs the images automatcally on load.
I have pasted the code below, hope this is ok?
many thanks for anyones help!
CODE:
// (c) Copyright by Andrew DiFiore. All rights reserved. DO NOT REMOVE.
fscommand("allowscale", "false");
Stage.scaleMode = "noScale";
targetPhoto._visible = false;
slides_xml = new XML();
slides_xml.onLoad = loadSlideShow;
slides_xml.load("album.xml");
slides_xml.ignoreWhite = true;
function loadSlideShow(success) {
if (success == true) {
rootNode = slides_xml.firstChild;
totalSlides = rootNode.childNodes.length;
currentSlideNode = rootNode.firstChild;
photos = new Array(totalSlides);
thumbs = new Array(totalSlides);
captions = new Array(totalSlides);
tx = 0;
for (i=0; i < totalSlides; i++) { // populate arrays and create thumbnails dynamically
photos[i] = currentSlideNode.attributes.jpegURL;
thumbs[i] = [currentSlideNode.attributes.jpegWidth,currentSlideNode.attributes.jpegHeight];
captions[i] = currentSlideNode.firstChild.nodeValue;
_root.attachMovie("thumb","thumb"+i,i);
_root["thumb"+i]._x = tx;
_root["thumb"+i]._y = 595; // using fixed Y coord
_root["thumb"+i].tindex = i;
tx += 22;
currentSlideNode = currentSlideNode.nextSibling;
// initialize values <<<<<<<<<<<<<<<<<<<<<<<IS IT HERE?????
currentIndex = 0;
targetWidth=thumbs[currentIndex][0]; // get width
targetHeight=thumbs[currentIndex][1]; // get height;
updateSlide();
function updateSlide() { // load photo, update caption and status fields
targetPhoto.loadPhoto(photos[currentIndex]);
caption = captions[currentIndex];
statusField = (currentIndex+1) + "/" + totalSlides;
function slideShow() {
if (currentIndex == totalSlides-1) { currentIndex = 0; } else { currentIndex++; }
targetPhoto._visible = false;
targetWidth=thumbs[currentIndex][0]; // get width
targetHeight=thumbs[currentIndex][1]; // get height;
updateSlide();
MovieClip.prototype.loadPhoto = function(fn) { // load external jpeg method + preloader
this.createEmptyMovieClip("holder", 1);
this.holder.loadMovie(fn);
this.onEnterFrame = function() { // NOTE: could use this to display percentage to user
if (Math.floor((this.holder.getBytesLoaded()/this.holder.getBytesTotal())*100) >= 100) {
delete this.onEnterFrame;something like this...not quite working
function updateSlide() { // load photo, update caption and status fields
setTimeout(targetPhoto.loadPhoto(photos[currentIndex], 2000);
caption = captions[currentIndex];
statusField = (currentIndex+1) + "/" + totalSlides; -
Help - xml driven photo gallery
Hello,
I have a very simple ajax page. There is a dropdown from
which the user selects the gallery and then there is an xml file
that send back the xml full of pictures for that gallery. The
problem is that on changing the gallery in the dropdown, sometimes
it works and then it doesnt. More like it works the first time (so
new pictures load up fine) and then it doesnt. I cant figure out
for the life of me why this wont work right. I have tried looking
at the xml, it is running fine, takes a url parameter as the
galleryid and generates the xml. The alert in the get_pictures
alwys pops up but the loadData seems like not working. Been looking
over this code for hours now. Here is the relevant code:
<script type="text/javascript">
var dsPhotos = new
Spry.Data.XMLDataSet("test_getpics_xml.cfm?galleryid=<cfoutput>#galleryid#</cfoutput>",
"photos/photo");
//var dsPhotos = new
Spry.Data.XMLDataSet("test_getpics_xml.xml?galleryid=<cfoutput>#galleryid#</cfoutput>",
"photos/photo");
//var dsPhotos_page = new
Spry.Data.PagedView(dsPhotos,{pageSize: 20});
//var dsPhotos_page_info = dsPhotos_page.getPagingInfo();
function get_pictures(galleryid)
urltext='test_getpics_xml.xml?galleryid='+galleryid
alert(urltext)
dsPhotos.setURL(urltext)
dsPhotos.loadData()
</script>
<table>
<tr>
<td>Galleries:
<select name="galleryid"
onChange="get_pictures(this.value)">
<cfoutput query="qry_galleries">
<option
value="#galleryid#">#galleryname#</option>
</cfoutput>
</select>
</td>
</tr>
</table>
<div spry:region="dsPhotos">
<div spry:repeat="dsPhotos"> <a href="##"
onclick="alert('hey')"><img width="100" height="100"
src="{@picture}" /></a>
<p><br />
</p>
</div>
</div>
I have Firebug plugin installed on my Firebox and there is no
error on it. Any help will be appreciated. Thanks a lot.Hi vansh110,
It's really hard to diagnose the problem without actually
seeing your example in action. If you can't give us an URL to look
at, then the best we can do is suggest some debugging tips.
Try adding an observer to your data set that prints the
notifications:
dsPhotos.addObserver(function(notificationType, notifier,
data)
Spry.Debug.trace(notificationType);
if (notificationType == "onPostLoad")
Spry.Debug.trace("<pre>" +
Spry.Utils.encodeEntities(dsPhotos.getData().toSource()) +
"</pre>");
That way you can watch what states the data set is going
through. The trace statement will only work in FireFox due to the
use of toSource(), but it will show you what the final data set
looks like after the data is loaded and flattened into a table.
Next, you can turn on region debugging:
Spry.Data.Region.debug = true;
That should show you the markup that is being generated after
data is loaded.
--== Kin ==--
Maybe you are looking for
-
I want to download the new 5.0 software to my iPad 2 but I don't want to lose all the music I have in my lists in iTunes. When I sync with the computer, these songs do not automatically sync. Only the ones in "purchased" music will upload. How do I u
-
The installer you have invoked can run only in solaris_sparc platform.
Hello, I receive the following error when i try and install Solaris Cluster: -bash-3.00# uname -a SunOS Sun-280R-10 5.10 Generic_137111-05 sun4u sparc SUNW,Sun-Fire-280R -bash-3.00# cd /cdrom/solaris_cluster/solaris_sparc/ -bash-3.00# ./installer The
-
I've purchased a new c3-01 2 days ago. But i can't update to opera mini 6 as it says "Invalid application to update". How can i solve this issue? Its also quite disappointing to know that it doesn't support google maps. Even my old 6300 did so. Pleas
-
Join statement with for all entries
Hi Can I write a Inner join with for all entires of some X itab? Thanks Kiran
-
Full Bars to Searching to No Service
Hello, I have an issue with my iPhone 5. Once I woke up this morning, I noticed my AT&T service cycles and fluctuates from full bars to one bar to searching to no service. The cycle is continuous and takes approximately 30 to 60 seconds to complete c