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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

link opening window in specific place 1

Status
Not open for further replies.

skint

Technical User
Mar 10, 2008
11
GB
Hi guys ! i would really appreciate some help. I am trying to find out how to open a window from a link - where the window opens in a specific place in on my webpage... i have a load of small icon movie links on a page, and a section on that page is reserved to show the movies.

Do i have to link each movie to an exact copy of that web page but with the chosen movie embedded in the correct place or is there an easier way ? Do i have to use frames or something like that ?

Cheers !
 
There are several ways you can do this. Frames, or an iframe is one. You can also use Javascript to dynamically change the source of your movie object to that of the link that was clicked.

However you do it you'll need a movie object to play the movies. What kind of moves are they? Quicktime? Windows Media? Flash?


----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
They will be whatever is easiest to incorporate in my site i imagine, as i would hope its easy to convert from one format to another. Really i would like them to be in the easiest and most widely used format for the web, however i am not quite sure which one this would be.
They will generally be home recorded vids done via pc cameras. Any suggestions on the best player to use would be greatly appreciated.

Thanks a lot.
 
I would use Quicktime format. Its widely used. And it will be hard to find anybody that doesn't have the video plugin.
Explains it better than I could.

Now if you want to use an iframe, you can set the source of the iframe to the path of your movie, and most browsers will attempt to play it instead of downloading it.

like this:
Code:
<iframe name="[red]nameofiframe[/red]" id="nameofiframe" width="256" height="256" src="default source"></iframe>


And then in your links:
<a href="#" onClick='document.all.[red]nameofiframe[/red].src="movie.mov";'>Movie</a>

Each link will have a different movie.mov for its source.





----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Thanks vacunita, really appreciated !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top