Hirdetés
- Luck Dragon: MárkaLánc
- Luck Dragon: Asszociációs játék. :)
- gban: Ingyen kellene, de tegnapra
- GoodSpeed: 3I/Atlas: Üstökös vagy idegen civilizáció űrhajója?
- Brogyi: CTEK akkumulátor töltő és másolatai
- Meggyi001: Kórházi ellátás: kuka vagy finom?
- Meggyi001: A kérdés...
- Sub-ZeRo: Euro Truck Simulator 2 & American Truck Simulator 1 (esetleg 2 majd, ha lesz) :)
- eBay-es kütyük kis pénzért
- Lalikiraly: Astra kalandok @ Negyedik rész
Új hozzászólás Aktív témák
-
válasz
Meggyi001
#21292
üzenetére
Bocsi, nem formáztam
<!DOCTYPE html><html><head><style>.news-container {display: flex;justify-content: flex-end;align-items: center;height: 50px;background-color: lightgray;}.news-item {padding: 10px;font-size: 20px;color: black;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;}</style></head><body><div class="news-container"><marquee class="news-item" behavior="scroll" direction="left">News Item 1 | News Item 2 | News Item 3</marquee></div></body></html>
--------------------------<!DOCTYPE html><html><head><style>.news-container {display: flex;justify-content: flex-end;align-items: center;height: 50px;background-color: lightgray;}.news-item {padding: 10px;font-size: 20px;color: black;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;}</style></head><body><div class="news-container"><marquee class="news-item" behavior="scroll" direction="left" id="news-item">Loading news...</marquee></div><script>// Fetch the CNN news from an APIconst apiUrl = "https://api.example.com/cnnnews";fetch(apiUrl).then(response => response.json()).then(data => {// Update the news item text with the fetched newsconst newsItem = document.getElementById("news-item");newsItem.innerText = `CNN Breaking News: ${data.breakingNews} | CNN Latest Headlines: ${data.latestHeadlines}`;}).catch(error => {console.error("Error fetching CNN news:", error);});</script></body></html>------------------------------
<!DOCTYPE html><html><head><style>.news-container {display: flex;justify-content: flex-end;align-items: center;height: 50px;background-color: lightgray;}.news-item {padding: 10px;font-size: 20px;color: black;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;}</style></head><body><div class="news-container"><marquee class="news-item" behavior="scroll" direction="left" id="news-item">Loading news...</marquee></div><script>// Fetch the Google news from the APIconst apiUrl = "https://news.google.com/home?hl=hu&gl=HU&ceid=HU:hu";fetch(apiUrl).then(response => response.text()).then(data => {// Parse the fetched data to extract the news headlinesconst parser = new DOMParser();const htmlDocument = parser.parseFromString(data, "text/html");const headlines = htmlDocument.querySelectorAll(".pg-c:not(.pg-c-t)");// Concatenate the headlines into a single stringconst headlinesText = Array.from(headlines).map(headline => headline.textContent.trim()).join(" | ");// Update the news item text with the fetched headlinesconst newsItem = document.getElementById("news-item");newsItem.innerText = headlinesText;}).catch(error => {console.error("Error fetching Google news:", error);});</script></body></html>
Új hozzászólás Aktív témák
- AKCIÓ! Apple Mac Studio M1 MAX 2022 32GB 512GB számítógép garanciával, hibátlan működéssel
- GYÖNYÖRŰ iPhone 12 Pro 256GB Gold -1 ÉV GARANCIA - Kártyafüggetlen, MS3438, 100% Akkumulátor
- ÁRGARANCIA!Épített KomPhone Ryzen 5 5600X 16/32/64GB RAM RTX 5060 8GB GAMER PC termékbeszámítással
- ÁRGARANCIA!Épített KomPhone Ryzen 5 4500 16/32/64GB RAM RTX 5050 8GB GAMER PC termékbeszámítással
- Újszerű Acer Aspire A515 - 15.6"FHD IPS - i5-1335U - 16GB - 512GB SSD - Win11
Állásajánlatok
Cég: Laptopműhely Bt.
Város: Budapest
Cég: NetGo.hu Kft.
Város: Gödöllő

