Easy html question

They have: 25 posts

Joined: Mar 2005

hey, i was curious to know if you guys could tell me how to have a link on my homepage open up as a smaller window, with just the information pertaining to the link (pic, then some words).

or a link that may help me.
thanks

Ashe

timjpriebe's picture

He has: 2,667 posts

Joined: Dec 2004

Not totally sure what you're asking. You want the link to only pop up a window with a picture and some text?

If so, something like this may work:

LINK TEXT

FILENAME would be the name of an HTML file with the pic and words in it.

They have: 5,633 posts

Joined: Jan 1970

<a href="#" onClick=javascript:window.open("FILENAME.html","_blank","menubar=no,width=550,height=375")>LINK TEXT</a>'
You want it to be a blank window, not name it "blank".

They have: 25 posts

Joined: Mar 2005

thanks a ton

They have: 5,633 posts

Joined: Jan 1970

Actually, this whould be more efficent

<a href='javascript:window.open("FILENAME.html","_blank","menubar=no,width=550,height=375")'>LINK TEXT</a>
'

timjpriebe's picture

He has: 2,667 posts

Joined: Dec 2004

Yes, but if you do it without sticking the # in the href and the javascript in onclick, it will leave the page you had open in the original window. IE will display [object] and FireFox will display [object Window].

Assuming you want the original page to still be displayed, don't do it that way.

I believe you're right, bja888, about using _blank instead of. Sorry about that.

They have: 5,633 posts

Joined: Jan 1970

oops, ur right!! you have to make it a function if you wanna put the 'javascript:' in the href. We where bothe wrong Sticking out tongue

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.