Cosmin Posted April 23, 2023 Share Posted April 23, 2023 Is there any code that makes it possible to auto-play an audio file when hovering over an image block and let it play until it ends without looping even after the image block isn't hovered anymore ? Link to comment
tuanphan Posted April 24, 2023 Share Posted April 24, 2023 You can add Image Block + Audio Block, then share link to page where you added it, we can give script code to achieve this MoeTalks 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
kaydotjpg Posted September 29, 2023 Share Posted September 29, 2023 https://wedge-giraffe-p8dx.squarespace.com/ password: 12345 Hi! I really love how this website have fun could effects when you hover and click. It has a lot of short little "boings", "whooshes", and other cool sound effects. How would one achieve this? Link to comment
tuanphan Posted October 3, 2023 Share Posted October 3, 2023 You mean hover on button >> Show an audio bar on top of site? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
kaydotjpg Posted October 10, 2023 Share Posted October 10, 2023 @tuanphan Not exactly- I mean when someone hovers or clicks on a button there is a sound effect (like a "whoosh" or "click", etc). The user should see no audio bar or have any control over the sound effects. Like this website for example Link to comment
paul2009 Posted October 12, 2023 Share Posted October 12, 2023 You can play sound effects with some simple JavaScript that reacts to an element being clicked or hovered. For example, the first step will be to upload some sound files to your site (for example, .mp3) using the file upload feature. You'll then be able to play them by referring to their URL - they will appear in the /s/ folder under the site's domain. To test it is working, you can play the file 'boing.mp3' with this test example: <script> var audio = new Audio('/s/boing.mp3'); audio.play(); </script> If you'd like help with code that is triggered when a specific element or type of element is clicked, the community will need a little more information about how you want to trigger these sound effects, and we'll need a link to the site and the file(s) after upload For example, do you want them to play when a specific element or type of element is clicked? Which one(s)? Do you want the same sound to play every time, or do you want a random effect from a range of sounds? I hope this gets you started. Did this help? Please give feedback by clicking an icon below ⬇️ Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional. Link to comment
kaydotjpg Posted November 8, 2023 Share Posted November 8, 2023 @Member this is exactly what I meant! So thank you so much. For the code you provided - could you tell me exactly where to paste it? MoeTalks 1 Link to comment
MoeTalks Posted April 30 Share Posted April 30 @paul2009 I'm trying to find this too. I'm on the business plan now but when I try to upload mp3 it says I cannot. It can only do it through audio blocks. This is user error so any help would be appreciated. Thanks. Link to comment
MoeTalks Posted April 30 Share Posted April 30 (edited) Let's make up a word. sesquipedalian. I would like that when a user clicks on that word or hovers over the word the audio for that word would lay. Much like this google site except the SS player would play the audio. Although I am now on the business plan, I thought I could just upload the .mp3, get the link for it and that would be that but that does not seem to work. I'm not sure where to begin on this one. Any ideas would be great and I buy lots of coffee for folks 😂 😂 Oh, and I did go into chrome inspect and was able to copy out the mp3 link from SS static link which works as a link but it doesn't open on the same page it opens it on a new page (which I would expect). I just want it to play without showing an audio player like on the link below but I will settle for what i can get. Thanks. https://www.google.com/search?q=sesqupidlian&oq=sesqupidlian&gs_lcrp=EgZjaHJvbWUyBggAEEUYOdIBCDM3ODlqMGo3qAIAsAIA&sourceid=chrome&ie=UTF-8 Edited May 1 by MoeTalks Add notes Link to comment
MoeTalks Posted May 1 Share Posted May 1 @tuanphan I need help with this. I just posted a question about something just like this. Link to comment
paul2009 Posted May 1 Share Posted May 1 7 hours ago, MoeTalks said: when I try to upload mp3 it says I cannot. How are you trying to upload it? The file can be added using a Link Editor, as described in Uploading and managing files. Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional. Link to comment
MoeTalks Posted May 1 Share Posted May 1 I will take a look at this again. Thanks @paul2009 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment