光标预览:Mrs. Puff - 1 - cute-cursor.com

光标包

Mrs. Puff

SpongeBob SquarePants 已添加 271 次

Browse with Mrs. Puff - a Chrome cursor featuring Bikini Bottom pointer and undersea hover. SpongeBob fan art.

添加到扩展

Introducing the Mrs. Puff cursor for your browser, part of our SpongeBob SquarePants Cursor Collection! Now you can navigate through your favorite websites with the help of Mrs. Puff, the beloved boating school instructor from Bikini Bottom. Whether you're a fan of the show or just looking for a fun and unique cursor, this collection is perfect for you. With a variety of characters to choose from, you're sure to find one that fits your style. So why wait? Download the Mrs. Puff cursor today and bring a touch of SpongeBob to your browsing experience!

光标文件

下载文件,或复制包含正确热点坐标的即用型 CSS、JavaScript、React 和 Roblox 代码。

光标 - 1 - cute-cursor.com

光标

下载文件,或复制适用于你的网站、React、JavaScript 或 Roblox 的嵌入代码。

将此 CSS 粘贴到你的样式表中,已包含热点坐标。

.custom-cursor {
  cursor: url('https://cute-cursor.com/cdn/packs/10622/arrow.png') 10 1, auto;
}

粘贴此 JavaScript 代码,即可应用带有正确热点坐标的光标。

const CURSOR_URL = 'https://cute-cursor.com/cdn/packs/10622/arrow.png';
const HOTSPOT_X = 10;
const HOTSPOT_Y = 1;
const CURSOR_FALLBACK = 'auto';

const cursorValue = `url('${CURSOR_URL}') ${HOTSPOT_X} ${HOTSPOT_Y}, ${CURSOR_FALLBACK}`;

// Apply to the whole page
document.body.style.cursor = cursorValue;

// Or apply to a specific element
// const target = document.querySelector('.my-element');
// if (target) target.style.cursor = cursorValue;

复制此 React 组件,并用它包裹你的内容。

import React from 'react';

const CURSOR_URL = 'https://cute-cursor.com/cdn/packs/10622/arrow.png';
const HOTSPOT_X = 10;
const HOTSPOT_Y = 1;
const CURSOR_FALLBACK = 'auto';

export default function CustomCursor({ children, className = '', as: Tag = 'div', style = {}, ...props }) {
  const cursorStyle = {
    cursor: `url('${CURSOR_URL}') ${HOTSPOT_X} ${HOTSPOT_Y}, ${CURSOR_FALLBACK}`,
    ...style,
  };

  return (
    <Tag className={className} style={cursorStyle} {...props}>
      {children}
    </Tag>
  );
}

// Usage:
// <CustomCursor>Your content</CustomCursor>

将图片上传到 Roblox,替换 YOUR_ASSET_ID,然后粘贴此 LocalScript。

-- Roblox custom cursor
-- Image URL: https://cute-cursor.com/cdn/packs/10622/arrow.png
-- Hotspot: 10, 1
-- Size: 128x128
-- 1. Upload the image to Roblox and copy rbxassetid
-- 2. Replace YOUR_ASSET_ID below
-- 3. Put this LocalScript in StarterPlayer > StarterPlayerScripts

local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
local Players = game:GetService("Players")

local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")

local HOTSPOT_X = 10
local HOTSPOT_Y = 1
local CURSOR_WIDTH = 128
local CURSOR_HEIGHT = 128

local screenGui = Instance.new("ScreenGui")
screenGui.Name = "CustomCursorGui"
screenGui.ResetOnSpawn = false
screenGui.IgnoreGuiInset = true
screenGui.DisplayOrder = 999999
screenGui.Parent = playerGui

local cursor = Instance.new("ImageLabel")
cursor.Name = "CustomCursor"
cursor.BackgroundTransparency = 1
cursor.Size = UDim2.fromOffset(CURSOR_WIDTH, CURSOR_HEIGHT)
cursor.Image = "rbxassetid://YOUR_ASSET_ID"
cursor.ZIndex = 999999
cursor.Parent = screenGui

UserInputService.MouseIconEnabled = false

RunService.RenderStepped:Connect(function()
    local mouseLocation = UserInputService:GetMouseLocation()
    cursor.Position = UDim2.fromOffset(mouseLocation.X - HOTSPOT_X, mouseLocation.Y - HOTSPOT_Y)
end)
指针 - 2 - cute-cursor.com

指针

下载文件,或复制适用于你的网站、React、JavaScript 或 Roblox 的嵌入代码。

将此 CSS 粘贴到你的样式表中,已包含热点坐标。

.custom-pointer {
  cursor: url('https://cute-cursor.com/cdn/packs/10622/hand.png') 31 3, pointer;
}

粘贴此 JavaScript 代码,即可应用带有正确热点坐标的光标。

const CURSOR_URL = 'https://cute-cursor.com/cdn/packs/10622/hand.png';
const HOTSPOT_X = 31;
const HOTSPOT_Y = 3;
const CURSOR_FALLBACK = 'pointer';

const cursorValue = `url('${CURSOR_URL}') ${HOTSPOT_X} ${HOTSPOT_Y}, ${CURSOR_FALLBACK}`;

// Apply to the whole page
document.body.style.cursor = cursorValue;

// Or apply to a specific element
// const target = document.querySelector('.my-element');
// if (target) target.style.cursor = cursorValue;

复制此 React 组件,并用它包裹你的内容。

import React from 'react';

const CURSOR_URL = 'https://cute-cursor.com/cdn/packs/10622/hand.png';
const HOTSPOT_X = 31;
const HOTSPOT_Y = 3;
const CURSOR_FALLBACK = 'pointer';

export default function CustomPointer({ children, className = '', as: Tag = 'div', style = {}, ...props }) {
  const cursorStyle = {
    cursor: `url('${CURSOR_URL}') ${HOTSPOT_X} ${HOTSPOT_Y}, ${CURSOR_FALLBACK}`,
    ...style,
  };

  return (
    <Tag className={className} style={cursorStyle} {...props}>
      {children}
    </Tag>
  );
}

// Usage:
// <CustomPointer>Your content</CustomPointer>

将图片上传到 Roblox,替换 YOUR_ASSET_ID,然后粘贴此 LocalScript。

-- Roblox custom cursor
-- Image URL: https://cute-cursor.com/cdn/packs/10622/hand.png
-- Hotspot: 31, 3
-- Size: 128x128
-- 1. Upload the image to Roblox and copy rbxassetid
-- 2. Replace YOUR_ASSET_ID below
-- 3. Put this LocalScript in StarterPlayer > StarterPlayerScripts

local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
local Players = game:GetService("Players")

local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")

local HOTSPOT_X = 31
local HOTSPOT_Y = 3
local CURSOR_WIDTH = 128
local CURSOR_HEIGHT = 128

local screenGui = Instance.new("ScreenGui")
screenGui.Name = "CustomCursorGui"
screenGui.ResetOnSpawn = false
screenGui.IgnoreGuiInset = true
screenGui.DisplayOrder = 999999
screenGui.Parent = playerGui

local cursor = Instance.new("ImageLabel")
cursor.Name = "CustomCursor"
cursor.BackgroundTransparency = 1
cursor.Size = UDim2.fromOffset(CURSOR_WIDTH, CURSOR_HEIGHT)
cursor.Image = "rbxassetid://YOUR_ASSET_ID"
cursor.ZIndex = 999999
cursor.Parent = screenGui

UserInputService.MouseIconEnabled = false

RunService.RenderStepped:Connect(function()
    local mouseLocation = UserInputService:GetMouseLocation()
    cursor.Position = UDim2.fromOffset(mouseLocation.X - HOTSPOT_X, mouseLocation.Y - HOTSPOT_Y)
end)
100% 免费

获取光标切换器扩展

Chrome 免费使用。只需安装一次,然后点击你喜欢的任意光标上的“添加”即可。

安装到 Chrome