Hello,
I use a imageflow javascript (example:
http://194.95.111.244/~countzero/scripts/_myImageFlowLightbox2/). The
script offers the ability to adjust the startimage in the imageflow.js
Part of the imageflow.js:
window.onload = function()
{
if(document.getElementById(conf_imageflow))
{
hide(conf_loading);
refresh(true);
show(conf_images);
show(conf_scrollbar);
initMouseWheel();
initMouseDrag();
glideTo( -450, 3)
}
}
The function where i can adjust the startimage:
glideTo( -450, 3)
I want to change this value dynamically in my index.php. is it
possible to source this values/functions out?
If its possible can someone explain how?
Regards,
dven
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---
You have to dynamically parse the output into the function. Something like this: glideTo( <?php echo $iValue; ?>, <?php echo $iValue2; ?>); On Mar 28, 11:47 am, dven <d.walhei...-d6PLgyg7Y9NWkMItezQGDw@public.gmane.org> wrote:> Hello, > > I use a imageflow javascript (example:http://194.95.111.244/~countzero/scripts/_myImageFlowLightbox2/). The > script offers the ability to adjust the startimage in the imageflow.js > > Part of the imageflow.js: > window.onload = function() > { > if(document.getElementById(conf_imageflow)) > { > hide(conf_loading); > refresh(true); > show(conf_images); > show(conf_scrollbar); > initMouseWheel(); > initMouseDrag(); > glideTo( -450, 3) > } > > } > > The function where i can adjust the startimage: > glideTo( -450, 3) > > I want to change this value dynamically in my index.php. is it > possible to source this values/functions out? > > If its possible can someone explain how? > > Regards, > dven--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Right, but how can i get the function glideTo( -450, 3); out of the imageflow.js in my index.php. It must be something like that, you know what i mean?: <script type="text/javascript"> glideTo( <?php echo $iValue; ?>, <?php echo $iValue2; ?>); </script> On 28 Mrz., 12:51, Will <willem.spru...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> You have to dynamically parse the output into the function. Something > like this: > > glideTo( <?php echo $iValue; ?>, <?php echo $iValue2; ?>); > > On Mar 28, 11:47 am, dven <d.walhei...-d6PLgyg7Y9NWkMItezQGDw@public.gmane.org> wrote: > > > Hello, > > > I use a imageflow javascript (example:http://194.95.111.244/~countzero/scripts/_myImageFlowLightbox2/). The > > script offers the ability to adjust the startimage in the imageflow.js > > > Part of the imageflow.js: > > window.onload = function() > > { > > if(document.getElementById(conf_imageflow)) > > { > > hide(conf_loading); > > refresh(true); > > show(conf_images); > > show(conf_scrollbar); > > initMouseWheel(); > > initMouseDrag(); > > glideTo( -450, 3) > > } > > > } > > > The function where i can adjust the startimage: > > glideTo( -450, 3) > > > I want to change this value dynamically in my index.php. is it > > possible to source this values/functions out? > > > If its possible can someone explain how? > > > Regards, > > dven--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Right but how can i get the function out of the imageflow.js and place it in my index.php? It must me something like that, you know what i mean?: <script type="text/javascript"> glideTo( <?php echo $iValue; ?>, <?php echo $iValue2; ?>); </script> On 28 Mrz., 12:51, Will <willem.spru...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> You have to dynamically parse the output into the function. Something > like this: > > glideTo( <?php echo $iValue; ?>, <?php echo $iValue2; ?>); > > On Mar 28, 11:47 am, dven <d.walhei...-d6PLgyg7Y9NWkMItezQGDw@public.gmane.org> wrote: > > > Hello, > > > I use a imageflow javascript (example:http://194.95.111.244/~countzero/scripts/_myImageFlowLightbox2/). The > > script offers the ability to adjust the startimage in the imageflow.js > > > Part of the imageflow.js: > > window.onload = function() > > { > > if(document.getElementById(conf_imageflow)) > > { > > hide(conf_loading); > > refresh(true); > > show(conf_images); > > show(conf_scrollbar); > > initMouseWheel(); > > initMouseDrag(); > > glideTo( -450, 3) > > } > > > } > > > The function where i can adjust the startimage: > > glideTo( -450, 3) > > > I want to change this value dynamically in my index.php. is it > > possible to source this values/functions out? > > > If its possible can someone explain how? > > > Regards, > > dven--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---