I have a client who has a young target audience and needs his site to play short "catch phrases" when the user clicks buttons. What would be the best way to go about this? I don't necessarily want to use Flash.
If you're looking for a quick dropdown solution, try this library. (I've played a bit with it, and it seems reasonable.)
Yes, you can use it. If someone is using old, crappy browser then he just won't hear a clip - that's not a very big problem I guess.
You could do that using hidden <audio> element and piece of JavaScript.
Related
I want to make a text based dialogue system giving the user multiple choices to choose from.
In terms of UI, i'd like it to be almost identical to something like this, but this is done in flash and isn't multiple choice:
http://code.tutsplus.com/tutorials/make-an-rpg-style-text-system-for-your-next-game--active-3678
Since I have no experience in flash, i'd like to see if it could be done in JS/jQuery.
I don't think i'd have a hard time replicating the UI at face value, but as far as the scrolling text goes, I'm not sure. Possibly CSS3?
My only ideas that might make it work would be, using a constructor for the people in the conversations, and then of course another for the conversation itself then display the "conversation" and user choices in a JQ dialog window? Other then that, I'm lost.
I know that there's dialog systems out there, but I haven't seen any in JS and i'm wondering if anyone has done something like this or at least attempted it.
As always, thanks for the help!
EDIT: I think I was a bit vague - if this can be done, how can it be done.
Is there any tuts or books/pdfs for something similar?
I got something working pretty quickly using Yarn (editor) and bondage.js (client). bondage 0.5.5 doesn't support all the features of Yarn but it's more than enough to get started.
This is my first question here in StackOverflow, but I have used the site many times, and you always helped me with your answers. Now its time to share my doubt, because I could not find a similar one here.
I have a flash banner rotator in my website, that uses a XML to configure the images and links that will rotate. I don't have acess to the source, because it is a commercial version.
I can not use jQuery to rotate the images, because I have a drop down menu and it always fall behind the banner. I tried z-index but it does not work on IE.
One of the images is to show a video, so, when someone click on it, I want a lightbox to open and play the video (I will use Sublimevideo.com for this)
The XML now is like this:
<slideshow>
<photo image="path/image.jpg" url="link" target="_blank"></photo>
</slideshow>
I need to add a CLASS to this link, because I want it to be opened in a lightbox!!!
So I was wondering to do something like this:
window.location.href='link class="lightbox"';
But this is not a option, it did not worked!
So how can I add a CLASS in the link at the xml file?
I was wondering using javascript, but if you have any other option, it will be GREAT!
Thanks a lot in advance and sorry for my English, I'm from Brazil =P
You could do it with an horrendous jQuery hack:
$('*[href*="path/image.jpg"]').addClass('lightbox');
Of course, if you know what the HTML will look like you could use a far more specific / less ugly selector.
A much better solution would be to add the class on the server, which sounds like it should be possible.
There are so many lightboxes to choose from, I'm looking for a very lightweight one to use in an embedded javascript widget that would be a single domain name. I saw the perfect one on chainreactioncycles.com, it popped up out of nowhere so I took a screenshot:
I tried looking for info on it on the page source, but couldn't find anything that would let me trace where it came from... Would anybody know of one like this? Or exactly that one?
If not exactly like above, anything similar would be great too, keeping the following in mind:
Very small javascript download (animation not needed)
Self contained, not dependent on any libraries other than jquery (since I'm already using that anyway).
Works in major browsers
Close button (like GetSatisfaction or UserVoice)
Dims background
Avoids javascript namespace conflicts (or can easily be made to avoid them)
CSS styling of lightbox does not interfere with site styling
Have you used an existing lightbox scripts for this same purpose with similar requirements? Did you roll your own? Insights welcome!
What you are looking for is called a modal box.
Here is a list of them
... and here is a striking replica of what you are looking for
Check out Zoombox.. It sounds like what you're looking for... Simple to use... Allows custom content.. jQuery Module... From past experience it covers what you have outlined as requirements etc
http://www.grafikart.fr/zoombox will tell you all you need to know.
I need to start a sound effect at will... I need it to be stopped as well before it is over. I'm doing this all in JavaScript. How would I go about this? I've never used sounds before in a page (normally not a good thing to use sounds, this project requires me to).
Any help would be appreciated :)
If it means anything, I'm also utilizing jQuery.
If you're using jquery, have you tried the sound plug-in?
You may want to look into SoundsManager2
I am trying to allow for the filling out of a form from a lightbox pop up window. One like the one that Get satisfaction uses (though I only need to be able to collect info, not display from a query as well). You can see a Get Satisfaction example at http://tweet.fabeetle.com and clicking the feedback tab.
What is the best way to do this? JQuery?
I used http://www.nickstakenburg.com/projects/lightview/ a while back and it worked very well.
bgadoci, if you're not an experienced javascript user (or you are and want to avoid a lot of unnecessary work) you'll definitely want to go with a Javascript library like jQuery. As far as choosing the right plugin, you should shop around while keeping in mind your objective. Some of them will be friendlier with forms where others are built for images only.
I can recommend colorbox from experience.