Dit is de javascript file:
var _cm_Links = new Array();
var _cm_linkcnt = 0;
// ==========================================
// Function to read the link,
// the text and the URL from the custom links
// ==========================================
function _cm_LinkObject(Name, Text, URL)
{
this.Name=Name;
this.Text = Text;
this.URL = URL;
return this;
}
// =============================
// BEGIN OF Custom links
// Define your custom links here
// =============================
// ====================
// Custom links
// ====================
_cm_Links[_cm_linkcnt++] = new _cm_LinkObject("sluvshare", "Special Lighting File Server on BU Lamps", 'http://www.test.com/speciallighting');
// ===================
// END OF Custom links
// ===================
// ======================================
// Functions to make to whole thing work,
// Do Not EDIT These Funtions
// ======================================
function _cm_ListLink(Name, optional)
// write html code for link with Name and append optional part to URL of link.
{
var lastPart=optional || "";
for (i=0; i<_cm_linkcnt; i++)
if (_cm_Links[i].Name == Name)
document.writeln("<a href="+_cm_Links[i].URL+lastPart+">"+_cm_Links[i].Text+"</a>");
}
function _cm_ListLinks()
{
for (i=0; i<_cm_linkcnt; i++)
document.writeln(_cm_Links[i].htmlcode + "<br>");
}
Dit is de code om iets op het internet te planten
<script language="JavaScript" src="http://www.test.com/links.js"></script>
<script language="JavaScript">_cm_ListLink("sluvshare", "/common_files/bl_uv_organogram.doc");</script>
Bij het aanmaken van de hyperlink:
document.writeln("<a href="+_cm_Links[i].URL+lastPart+">"+_cm_Links[i].Text+"</a>");
Gebruikt ie nu [i].Text om als naam van de hyperlink neer te zetten, maar ik wil dit handmatig opgeven, maar dat hij de hyperlink zelf wel aanmaakt zoals nu.
Dus alleen de naam van de hyperlink die dus op internet wordt geplant niet automatisch laten genereren.
Ik hoop dat het duidelijk is
Alvast bedankt
var _cm_Links = new Array();
var _cm_linkcnt = 0;
// ==========================================
// Function to read the link,
// the text and the URL from the custom links
// ==========================================
function _cm_LinkObject(Name, Text, URL)
{
this.Name=Name;
this.Text = Text;
this.URL = URL;
return this;
}
// =============================
// BEGIN OF Custom links
// Define your custom links here
// =============================
// ====================
// Custom links
// ====================
_cm_Links[_cm_linkcnt++] = new _cm_LinkObject("sluvshare", "Special Lighting File Server on BU Lamps", 'http://www.test.com/speciallighting');
// ===================
// END OF Custom links
// ===================
// ======================================
// Functions to make to whole thing work,
// Do Not EDIT These Funtions
// ======================================
function _cm_ListLink(Name, optional)
// write html code for link with Name and append optional part to URL of link.
{
var lastPart=optional || "";
for (i=0; i<_cm_linkcnt; i++)
if (_cm_Links[i].Name == Name)
document.writeln("<a href="+_cm_Links[i].URL+lastPart+">"+_cm_Links[i].Text+"</a>");
}
function _cm_ListLinks()
{
for (i=0; i<_cm_linkcnt; i++)
document.writeln(_cm_Links[i].htmlcode + "<br>");
}
Dit is de code om iets op het internet te planten
<script language="JavaScript" src="http://www.test.com/links.js"></script>
<script language="JavaScript">_cm_ListLink("sluvshare", "/common_files/bl_uv_organogram.doc");</script>
Bij het aanmaken van de hyperlink:
document.writeln("<a href="+_cm_Links[i].URL+lastPart+">"+_cm_Links[i].Text+"</a>");
Gebruikt ie nu [i].Text om als naam van de hyperlink neer te zetten, maar ik wil dit handmatig opgeven, maar dat hij de hyperlink zelf wel aanmaakt zoals nu.
Dus alleen de naam van de hyperlink die dus op internet wordt geplant niet automatisch laten genereren.
Ik hoop dat het duidelijk is
Alvast bedankt