I’m hoping someone can help me as I’m still learning programming language while putting it into practice. The instructions for this jQuery as are listed:
How to use?
Like every jquery plugin, just chain it:
$("#flipbox").flip({
direction:'tb'
})
How to change content?
Add content params in this way:
$("#flipbox").flip({
direction:'tb',
content:'this is my new content'
})
And when you have that working, we’ll move on to getting the silhouette flipping, at which point you should be okay to transition to flipping the content as well.
So, grab the jquery library code from the jquery site, place it in a file called jquery.js (or whatever you like, as long as it ends with .js) and then link to it in the head of your document.
Then you need to add an ID of flipbox to the div in your html code so that jquery knows which div to target. E.g.
Just add id=“flipbox” to the already created div. (If the div already has a different id, then just change the id name in the jquery code to match it.)
That’s supposed to be a reverse reference, but they look more like RGB color values to me.
Oh dear gods, it seems that they are using it as a generic data store to hold the presentational background color value. Despite being valid in the strictest terms, it makes my semantic bones go all wonky.
You could just cut that out. But really, it’s time for an actual example of what you are trying to do with this script, and it has lots of uses and variations.
OK, as I said, it’s time for specifics. What are you trying to achieve? There’s no indication on that page of what you are attempting. The flipbox code we’ve been discussing doesn’t even appear on that page.