Jump to content


Photo

Need Help


  • Please log in to reply
5 replies to this topic

#1 Cobra

Cobra

    The Renegade

  • Banned
  • 1,048 posts
  • Location:Cobra's Lair
  • Projects:Quite a Few
  •  Resident Kiwi

Posted 17 May 2006 - 08:23 AM

Ok im not a total noob to html but im not the worlds best website creator either. anyway im either tired or i've never had to do this before lol anyway here goes.

im trying to make an html script available by adding a certain script into any page that is still updatable by simply over writing the original file on the server for a java script u could use <script LANGUAGE="javascript"
but for html what tag would you use?

if that doesnt make any sence then let me try again. An example i guess is the revora network bar. To get the network bar on your site you have to add
<script LANGUAGE="javascript" SRC="http://www.revora.net/bar.js"></SCRIPT>
i kinda want to do the same sort of thing but instead of a ".js" file the file i want this to work with is a html file.

If anyone could tell me what i need to do i would be very greatful, thanks

Dmain | I-Cold | earthWhois
Dmain Now offers .mobi extensions....why? Because we can :D

Posted Image

Posted Image


Update: EAW Galaxy is almost ready for launch. We're currently in need of forum staff and content writers for the main site. Please PM or Email me ASAP.

BFME Fans if you think you have what it takes, bfmeworld.com would love to be built. I have neither the time, nor the motivation any longer...


#2 Athena

Athena

    Embody the Truth

  • Undead
  • 6,946 posts
  •  Former Community Leader

Posted 17 May 2006 - 08:57 AM

I think you can just paste the html code there, since it's both the same language. Not sure if there is something like that <script> for html to html only.. In php you have the include function as well, but I wouldn't know something alike for html. Maybe someone else knows.

#3 Cobra

Cobra

    The Renegade

  • Banned
  • 1,048 posts
  • Location:Cobra's Lair
  • Projects:Quite a Few
  •  Resident Kiwi

Posted 18 May 2006 - 04:52 AM

ok i got home and had an idea, its most likely a "src=" tag well thats if you are adding another html script in from the same directory so it says like "src=box.html" but does that work like src=www.whateverimafter.com/thing.html

i dont think it does cause it doesnt work for me. Anyone that has an idea plz help

Dmain | I-Cold | earthWhois
Dmain Now offers .mobi extensions....why? Because we can :D

Posted Image

Posted Image


Update: EAW Galaxy is almost ready for launch. We're currently in need of forum staff and content writers for the main site. Please PM or Email me ASAP.

BFME Fans if you think you have what it takes, bfmeworld.com would love to be built. I have neither the time, nor the motivation any longer...


#4 Blodo

Blodo

    The one who disagrees

  • Project Team
  • 3,002 posts
  • Location:Eastern Europe
  • Projects:siteMeister, Mental Omega
  •  The wise guy

Posted 18 May 2006 - 09:11 AM

You can't use <script> for including things. If you want to include a file you need to use php or some other server-side language, javascript is not server-side so it does not work.

There is a thing called 'ssi includes' solely for the purpose of including html files, thing is though if a server has that enabled, they usually enable php as well; in which case it is better to use the latter, since it's faster.

ARGUMENT FROM CREATION, a.k.a. ARGUMENT FROM PERSONAL INCREDULITY (I)
(1) If evolution is false, then creationism is true, and therefore God exists.
(2) Evolution can't be true, since I lack the mental capacity to understand it; moreover, to accept its truth would cause me to be uncomfortable.
(3) Therefore, God exists.


#5 Cobra

Cobra

    The Renegade

  • Banned
  • 1,048 posts
  • Location:Cobra's Lair
  • Projects:Quite a Few
  •  Resident Kiwi

Posted 18 May 2006 - 08:02 PM

hmm, ok but what exact tag would i use?

basically for example the revora network bar is a javascript. therefore we use <script LANGUAGE="javascript" SRC="http://www.revora.ne...r.js"></SCRIPT> to get it on our sites. what if the bar was bar.html. what script would i have to use then???

Dmain | I-Cold | earthWhois
Dmain Now offers .mobi extensions....why? Because we can :D

Posted Image

Posted Image


Update: EAW Galaxy is almost ready for launch. We're currently in need of forum staff and content writers for the main site. Please PM or Email me ASAP.

BFME Fans if you think you have what it takes, bfmeworld.com would love to be built. I have neither the time, nor the motivation any longer...


#6 Blodo

Blodo

    The one who disagrees

  • Project Team
  • 3,002 posts
  • Location:Eastern Europe
  • Projects:siteMeister, Mental Omega
  •  The wise guy

Posted 20 May 2006 - 11:03 AM

<?php include('bar.html'); ?>
Server side php include.

ARGUMENT FROM CREATION, a.k.a. ARGUMENT FROM PERSONAL INCREDULITY (I)
(1) If evolution is false, then creationism is true, and therefore God exists.
(2) Evolution can't be true, since I lack the mental capacity to understand it; moreover, to accept its truth would cause me to be uncomfortable.
(3) Therefore, God exists.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users