View Full Version : Help... easy one!


sqirm
07-18-2003, 05:05 PM
ok, i am making a weblog and i want my intro to be an enter image and then you click it to open a new window to get to my site. an example would be www.rockys-stall.net

Lemon Squash
07-18-2003, 05:26 PM
http://www.lissaexplains.com/javascript4.shtml#window

sqirm
07-18-2003, 05:30 PM
that doesn't work for me though

Spirit892
07-18-2003, 05:45 PM
are you sure you are filling in the right information? what does your code look like?

sqirm
07-19-2003, 12:47 PM
<input type="button" Value="Aim-High" style="font-family: Trebuchet MS" style="background:#yourcolorcode" ONCLICK="window.open('http://www15.brinkster.com/buccablog/index.html', 'Sample', 'toolbar=no,location=no,directories=no,status=no,m enubar=no,scrollbars=no,resizable=no,copyhistory=y es,width=822,height=548')">

sqirm
07-19-2003, 01:16 PM
but i want it to pop up from an image

MaGiCSuN
07-19-2003, 02:19 PM
if you read on on that page, there's an image way below it:

place this between <head> and </head>

<script language="javascript">
//<!--
function popup()
{ window.open ("YourURLgoesHere.html","popup","width=400,height=400,location=0,menubar=0,resizabl e=0,scrollbars=0,status=0,titlebar=1,toolbar=0") }
-->
</script>


and place this on the place where you want your image to appear:

<a href="javascript:popup()"><img src="blah.gif" border=0 width="40" height="40" alt="your image description here"></a>

http://www.lissaexplains.com/javascript4.shtml

second white box

but that's the way lissa says. You can also do it this way:

<a href="#" ONCLICK="window.open('yoururlhere.html', 'Sample', 'toolbar=no,location=no,directories=no,status=no,m enubar=no,scrollbars=no,resizable=no,copyhistory=y es,width=500,height=500')"><img src="imagehere.gif" border="0"></a>

change the bold parts to your parts :)

Love,
Mirna

sqirm
07-19-2003, 04:17 PM
Thanks! It works!