Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

object question

Status
Not open for further replies.

Jouster

Programmer
Dec 4, 2000
82
US
I've been trying to learn how to use this tag and i found an example on the web but it does not work.

Can someone tell me why and if you have a better source for me to learn this from i would greatly appreciate it.

Code:

<OBJECT ID=IEMenu1 CLASSID="clsid:7823A620-9DD9-11CF-A662-00AA00C066D2" WIDTH=1 HEIGHT=1 ALIGN=LEFT HSPACE=0 VSPACE=0>
<PARAM NAME="Menuitem[0]" VALUE="This is the first item">
<PARAM NAME="Menuitem[1]" VALUE="This is the second item">
<PARAM NAME="Menuitem[2]" VALUE="This is the third item">
<PARAM NAME="Menuitem[3]" VALUE="This is the fourth item">
<PARAM NAME="Menuitem[4]" VALUE="This is the fifth item">
</OBJECT>

<SCRIPT LANGUAGE="VBScript">
Sub IEMenu1_Click(ByVal x)
Alert "You clicked on menu item: "&x
End Sub
Sub ShowMenu_onClick
call IEMenu1.PopUp()
End Sub
</SCRIPT>

<div onClick="IEMenu1.PopUp()"><b>Drop down menu!</b></div>
 
Unless you've got the code behind that object element installed, you'll see nothing at all.

In fact, there's not really much to "learn" about the object element - it's one of those things that unless you need to use it, you don't really need to look into. It's also one of those things that is different every time (well - for every type of usage).

I guess what I'm saying is - unless you know you need to use it, don't watse too much time reading up on it.

Hope this helps,
Dan


[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
self said:
It's also one of those things that is different every time (well - for every type of usage)

To give an example... One sit might use it to embed a video. One might use it to embed a menu. One might use it to embed a counter. One might use it to embed some spyware.

As you can see - different every time.

Dan


[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
OK, thanks. I have another question, but i will start a new thread.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top