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

Open a new window with ASP?

Status
Not open for further replies.

fterrazas

Technical User
Dec 29, 2000
43
ES
This is what I want, I some part of the texte of my page I need to include some links to flash animations, I mean if I, the user, click in the word "car" of the text, this will open a new window of a fixed size with the flash animation showing a car rolling or something like that. Coul you help me please?
 
Let's say you have a flash movie that is 200x200 pixels, and that is the one that you want to open up in the new window when they click 'car'...

<a href=&quot;javascript:eek:penWindow('car.swf');&quot;>car</a>

Then your javascript function would be:
<script language=javascript>
function openWindow(movieVal){
urlString = &quot; + movieVal
window.open(urlString,'windowID','height=200,width=200');
}
</script>

Not exactly asp, but I think that's what you're looking for.

You can also dynamically create the value that you send to the openWindow function (if you have the value in a recordset or some other asp object or variable) by writing it out inside the <%= %> tags on the href up there.

If this isn't what you needed, then post back some more specifics.

:)
Paul Prewett
 
This one works great also...


<p align=&quot;center&quot;>
<a href=&quot;#&quot; OnClick=&quot;window.open('movie.swf','mine','toolbar=no,directories=no,status=no, scrollbar=yes, width=400,height=280')&quot;><font color=&quot;#FF0000&quot; size=&quot;3&quot;>Click here</font><font color=&quot;#0000FF&quot; size=&quot;3&quot;>
</font><font color=&quot;#FF0000&quot; size=&quot;3&quot;>to view the car</font></a>
QUOTE OF THE DAY
Not to know if bad; not to wish to know is worse.
<%
Jr Clown
%>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top