473,394 Members | 1,867 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

? Making Link to Something Pointed to by Javascript

On
http://sketchup.google.com/gsu5vtviewer.html#id=27
The video for the Rotate Tool lesson works okay when I click on it,
but I want to link directly to it.
Looking at the source of the page there's a section corresponding to
the Rotate video link:

videos[22] = {title: "Rotate Tool",

link: "Mod_B2-rotate_tool.swf",

section: 0};

This apparently means that the name of the flash file is:

Mod_B2-rotate_tool.swf

Later on that page, there is this:

// path to where videos are hosted (with trailing slash)

var path = "http://download.sketchup.com/videos/su5videos/";

But when I combine that var path with the link, I get
http://download.sketchup.com/videos/...otate_tool.swf

But placing that in the Firefox address box gets me nothing.

I want to create a link directly to the Rotate Lesson video. How do I
assemble the URL?

--
(||) Nehmo (||)

Feb 10 '07 #1
2 1387
On Sat, 10 Feb 2007 07:55:51 GMT Nehmo scribed:
On
http://sketchup.google.com/gsu5vtviewer.html#id=27
The video for the Rotate Tool lesson works okay when I click on it,
but I want to link directly to it.
Looking at the source of the page there's a section corresponding to
the Rotate video link:

videos[22] = {title: "Rotate Tool",

link: "Mod_B2-rotate_tool.swf",

section: 0};

This apparently means that the name of the flash file is:

Mod_B2-rotate_tool.swf

Later on that page, there is this:

// path to where videos are hosted (with trailing slash)

var path = "http://download.sketchup.com/videos/su5videos/";

But when I combine that var path with the link, I get
http://download.sketchup.com/videos/...otate_tool.swf

But placing that in the Firefox address box gets me nothing.
That url works for me - any browser.
I want to create a link directly to the Rotate Lesson video. How do I
assemble the URL?

--
(||) Nehmo (||)



--
Neredbojias
He who laughs last sounds like an idiot.
Feb 11 '07 #2
http://download.sketchup.com/videos/...otate_tool.swf
But placing that in the Firefox address box gets me nothing.

That url works for me - any browser.
Well, it doesn't work for me. The title is correct in the title bar.
And when I right click anywhere I can see I'm in a Flash file. But I
don't get the movie. I get the same behavior in Firefox 2.0.0.1 and IE
7.

Apparently, the video player on http://download.sketchup.com/videos/videoplayer.swf
gets loaded in the browser and then the swf file gets loaded into
that.

I don't know Javascript, but the procedure for playing the swf file
seems to be in this part of the code:
// render a video in the play area
function dovideo(id)
{
if (!id) id = 0; /* THIS IS NEW */

var elem = document.getElementById("playing");
elem.innerHTML =
'<embed style="width:640px; height:500px;" ' +
'type="application/x-shockwave-flash" bgcolor="#000000" ' +
'src="' + player + '" FlashVars="videoUrl=' + path +
videos[id].link +
'&hl=en&autoplay=true"></embed>';

var elem = document.getElementById("title");
elem.innerHTML = videos[id].title;
}

Anyway, I still don't know how to make a direct link to the video.
--
(||) Nehmo (||)


Feb 12 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: |-|erc | last post by:
Hi! Small challenge for you. The index.php uses this file and calls layout(). Take a look at www.chatty.net this file draws the chat login box on the right. I traced the CHAT button it submits...
6
by: juglesh | last post by:
hello, I just want to be able to use a keypress to do the same as clicking a link. such as will 'click' a certain link, while will 'click' a different link. thanks for your time, juglesh ...
36
by: spence | last post by:
Hi All How do I make it so that when a user clicks in a search text field, the default entry (in this case "Search") is removed automatically - they are then faced with a blank search box and...
2
by: Stewart | last post by:
Originally posted in comp.lang.javascript: Newsgroups: comp.lang.javascript From: "Stewart" Date: 23 Aug 2005 02:50:04 -0700 Local: Tues, Aug 23 2005 10:50 am Subject: FireFox, RemoveChild,...
26
by: Mica Cooper | last post by:
Hi, I need to pass some info in a javascript submit. <a href="javascript:document.formName.submit();">Submit Form</a> Normally a link would do page.jsp?x1=1&x2=2&x3=3 and you would pull x1,...
6
by: isaac2004 | last post by:
hi am making a webpage for a client that has a lot of text on thier site, i have a photoshop template that i created and i want the text to fit in a small part of template, can anybody point me in...
1
by: nicky77 | last post by:
Hi, apologies in advance is this may be a nonsensical ramble, but I'm hoping someone can give me some advice on how to solve the following problem: I'm developing a site where the main content is...
7
by: Steve Swift | last post by:
How close can you get to making a submit button look like a link? Answers to the inevitable questions: 1. Because I don't want my email address (which would have to be part of the URL in a...
36
by: pereges | last post by:
Hi, I am wondering which of the two data structures (link list or array) would be better in my situation. I have to create a list of rays for my ray tracing program. the data structure of ray...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.