Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
please help! How to install interactive flash element.
Old 07-14-2009, 05:36 AM please help! How to install interactive flash element.
Junior Talker

Posts: 1
Trades: 0
Hi my knowledge is very limited but I can follow instructions well. I'm trying to make and install something that will change when I mouse-over it. Like a box that will open when I mouse-over it. I have flash and other programs. The only thing is I use a program called showit sites for my website. It's a program where I can drag and drop pictures and text. There is an advanced properties section where I can input code. I asked the designers and it will be around $800 for them to do this so I thought I would try to figure it on my own first. Please if you have any time could someone help me. Thank you.
kayteee is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-14-2009, 05:45 AM Re: please help! How to install interactive flash element.
hairygunther's Avatar
Extreme Talker

Posts: 164
Trades: 0
Quote:
I'm trying to make and install something that will change when I mouse-over it. Like a box that will open when I mouse-over it.
Easy work. You only need gifs/jpegs - ordinary images. One of the box closed, one of the box open. Then use the following code on your page (adapt it, or indeed ask for more help here)...

Code:
<html>
<head>
<script type="text/javascript">
function mouseOver()
{
document.getElementById("b1").src="b_blue.gif"
}
function mouseOut()
{
document.getElementById("b1").src="b_pink.gif"
}
</script>
</head>
<body>

<a href="http://www.w3schools.com" target="_blank" onmouseover="mouseOver()"
onmouseout="mouseOut()">
<img border="0" alt="Visit W3Schools!" src="b_pink.gif" id="b1" /></a>

</body>
</html>
http://www.w3schools.com/jsref/jsref_onmouseover.asp


You can simplify this further, i.e. use "short form"...

Code:
onmouseout="document.menu.src=pica.src" onmouseover="document.menu.src=picb.src"
is an example of the onmouse[etc] functions you can use inside the image tag itself, rather than in the <a href=""> tag which w3c has shown there since that would have been the original most normal basic standard long ago when I was knee high to a grasshopper's crap.

The other clever thing in my bit of code there (taken from a commercial site belonging to and built by me) is that it sticks the entire function into the onmouse[etc] rather than wasting energy, time and space with an actual subroutine* stuck into javascript tags.

(*The thing in javascript called 'function' it seems I have called a subroutine, who knows how interchangeable they are, it'd be a boring debate, but anyway, I apparently call most things subroutines if you go to them by name and run through a routine and return, whereas to me a function is something more like a single line equation using n's and an x and a y. eg on a scientific calculator)

Of course there are other bits of code elsewhere, largely just labels inside other tags, which cause document.menu000.src and pic1.src to mean something (i.e. refer to specific objects on the page).

To learn more about how to do all these sorts of things on a basic page look up or purchase some basic books on Javascript, a vital appendix-language adjoined to the world of html and much more obligatory than things like cascading style sheets which you can spend your life never using and still always be able to do everything you want, but NO ONE can do without Javascript. It's like water in a house. Bricks and carpets and electricity and cookers is all very well, but take away the water and you can't even flush the toilet.
__________________
I acknowledge Parker out of Thunderbirds and Glaxo Industries.

Last edited by hairygunther; 07-14-2009 at 05:58 AM..
hairygunther is offline
Reply With Quote
View Public Profile
 
Old 07-14-2009, 07:25 AM Re: please help! How to install interactive flash element.
edgray's Avatar
Super Moderator

Latest Blog Post:
Frantic
Posts: 4,264
Name: Sugarcane Gray
Location: Hell, Southern Spain
Trades: 0
head over to flashden.net, you might find what you're looking for over there.
__________________

Please login or register to view this content. Registration is FREE
- a project in video and sound.

Please login or register to view this content. Registration is FREE
"Absolute Rubbish, an insult to the blues." - NME.

Please login or register to view this content. Registration is FREE
- Come use our agency :)
edgray is offline
Reply With Quote
View Public Profile Visit edgray's homepage!
 
Reply     « Reply to please help! How to install interactive flash element.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.64559 seconds with 12 queries