Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Advise or help needed. I'm designer and no programer and as such run into a problem I need expertise. My website opens with a full screen .mp4 movie for iPhone 11. At the end of the movie I would like it to jump from the last pic to another website or show a link to it. I've tried different things with containers and links but to no avail. Guess it needs a javascript I can't write or implement myself. I'm really desperate for help and even would pay for a solution. |
||||
|
Hi Wolfgang, you definitely need to use Javascript. You can create a function that detects when the video/audio has reached its end and when that happens you can redirect to the website you mention or execute any other action. Greetings and success with your project. |
||||
|
Thank you, I'd thought so too. Can you or do you know someone who would take that job for a fee? |
||||
|
Place your video using a HTML 5 video element on your website, then create a JavaScript Element on the same page and double click it. Put this code into there: var videoelem = document.querySelector("video"); (replace the example.com url with the page your want to open once the video has finished playing) That should do the trick. |
||||
|
Thank you Nico, I am happy to see the light at the end of the tunnel. Just forgive me another dumb question, what is a Java Script [b]Element[|b] and where do I find it or choose the right one? |
||||
|
Ok it's a double click to produce a JavaScript element, I'd thought to click the editor. I try now what you've said. |
||||
|
Glory you Nico, thank you so much for your help, it works! I now just need to find a way to hide your script that appears on top of my website now. Does it has to do something with the additional information that appears when I put the pointer on the JavaScript Code link in the menu? |
||||
|
Just select the gray box and then in the property window, uncheck "create div around code", then it should disappear when clicking "preview" |
||||
|
Just select the gray box and then in the property window, uncheck "create div around code", then it should disappear when clicking "preview" This function does not exist for me in the Javascript element. |
||||
|
You probably just overlooked it. Select the gray box, then on the left, in the property window, it's the second entry with a checkbox. |
||||
|
You probably just overlooked it. Select the gray box, then on the left, in the property window, it's the second entry with a checkbox. Funny, I could have sworn the feature wasn't there yesterday. Sometimes you already have tomatoes on your eyes. |
|