Jump to content
GSForum - Segélyvonal

Új oldal megnyítása


Mezofi

Recommended Posts

Mezofi

Sziasztok!

Mivel szinte nulla a Java ismeretem, szeretném megkérdezni, hogyan lehet ugratni új oldalra a Java script segítségével.

 

Itt ez a kód:

<script LANGUAGE="JavaScript">
<!-- innen
document.write (screen.width + ' x ' + screen.height + ' pixel');
//-->
</SCRIPT>

Felismeri a böngészõ felbontását. Szeretném belerakni, hogy ha kissebb mint 1024 akkor ugorjon és nyissa meg a http://www.akármi.php-t.

Gondolom:

if (screen.width < 1024) { Na ide mit írjak?}

:?:

Link to comment
Share on other sites

Mezofi
<script LANGUAGE="JavaScript">
<!-- innen
if (screen.width <= 1023)
{
self.location.replace('kis_index.htm')
}
//-->
</SCRIPT>

:lol:

Link to comment
Share on other sites

Mezofi

Ez a tiszta kód?

Köszi.

:)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...